headless-browser
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

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"
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i headless-browser

Weekly Downloads

1

Version

0.0.11

License

ISC

Unpacked Size

145 kB

Total Files

36

Last publish

Collaborators

  • kevupton