npm i -g phantom-crawler-server
Execute command to run:
phantom-crawler
Get a specific page
METHOD: GET
URL: /get/:url
RESPONSE:
{
status_code: 200,
data: "<html></html>"
}
Download the active page
METHOD: GET
URL: /download
RESPONSE: content.html
Display the active page
METHOD: GET
URL: /display
RESPONSE: <html></html>
Click on something on the page
METHOD: POST
URL: /click
BODY:
{
query: "#someQuerySelector"
}
Fill out some form inputs
METHOD: POST
URL: /fill
BODY:
{
inputs: {
#someQuerySelector": "value"
#someQuerySelector2": "value2"
}
}