Sign inSign up

functions/base

By functions

•Updated over 9 years ago

Base functions for use with FaaS

Image
1

50K+

functions/base repository overview

⁠Phantomjs function

Phantomjs⁠ is a headless web-browser used for scraping and automation testing. This function will scrape a web-page with the JavaScript sent in through the function.

Example usage:

$ time curl --data-binary @cnn.js http://localhost:8080/function/phantomjs

Status: success
CNN - Breaking News, Latest News and Videos

real    0m8.729s

This script visits the front page of CNN and once it is fully loaded - scrapes the title.

See cnn.js⁠ as an example of a Phantomjs script.

Another example script feedly_subscribers.js⁠ gives the count of subscribers for an RSS Feed registered on Feedly.

Tag summary

Content type

Image

Digest

Size

83.8 MB

Last updated

over 9 years ago

docker pull functions/base:phantomjs