HEADLESS-BROWSER
Easy web-crawling using HTTP API server or node import.
INSTALL
npm i -g phantom-crawler-server
USAGE
Execute command to run:
phantom-crawler
GET
Get a specific page
METHOD: GETURL: /get/:urlRESPONSE:{ status_code: 200, data: "<html></html>"}
DOWNLOAD
Download the active page
METHOD: GETURL: /downloadRESPONSE: content.html
DISPLAY
Display the active page
METHOD: GETURL: /displayRESPONSE: <html></html>
CLICK
Click on something on the page
METHOD: POSTURL: /clickBODY: { query: "#someQuerySelector"}
FILL
Fill out some form inputs
METHOD: POSTURL: /fillBODY: { inputs: { #someQuerySelector": "value" #someQuerySelector2": "value2" }}