An HTTP server that can open and controlling web pages with JavaScript
1.5K
A docker image with a web service to automate interaction with web pages. Uses Gecko-based SlimerJS under the hood.
See chetbox/ghoulio for the standalone version.
$ docker run chetbox/ghoulio-server -e PORT=8000
Then send a POST to http://localhost:8000/open with a url and a script to run, and an optional callback URL.
e.g.
# Print Google search results
$ docker run -e PORT=8000 -p 8000:8000 chetbox/ghoulio-server
$ curl --data "url=https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dboo&script=Array.prototype.slice.call(document.querySelectorAll('h3.r'))%0A.forEach(function(a)%20%7B%0A%20%20console.log(a.textContent)%3B%0A%7D)%3B%0Aresolve()%3B" http://localhost:8000/open
See chetbox/ghoulio for more scripting information.
PORT - The port to run the web server on.GHOULIO_PAGE_TIMEOUT - The number of milliseconds before closing the page.GHOULIO_PATH - Path to ghoulio.jsSLIMERJS_PATH - Path to slimerjs executableGHOULIO_MAX_QUEUE_SIZE - Maximum number of jobs to queue before blocking requestsGHOULIO_WORKERS - Maximum number of parallel jobsDistributed under the MIT License.
Content type
Image
Digest
Size
313.8 MB
Last updated
over 10 years ago
docker pull chetbox/ghoulio-server