0.0.11 • Published 5 years ago

headless-browser v0.0.11

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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: GET
URL: /get/:url
RESPONSE:
{
  status_code: 200,
  data: "<html></html>"
}

DOWNLOAD

Download the active page

METHOD: GET
URL: /download
RESPONSE: content.html

DISPLAY

Display the active page

METHOD: GET
URL: /display
RESPONSE: <html></html>

CLICK

Click on something on the page

METHOD: POST
URL: /click
BODY: 
{
  query: "#someQuerySelector"
}

FILL

Fill out some form inputs

METHOD: POST
URL: /fill
BODY: 
{
  inputs: {
    #someQuerySelector": "value"
    #someQuerySelector2": "value2"
  }
}
0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

3.0.0

5 years ago