🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

phantom-crawler-server

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phantom-crawler-server

Crawl websites with PhantomJS or Puppeteer

latest
Source
npmnpm
Version
3.0.2
Version published
Weekly downloads
21
-68.18%
Maintainers
1
Weekly downloads
 
Created
Source

PHANTOM CRAWLER SERVER

Easy web-crawling using HTTP API server.

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

FAQs

Package last updated on 03 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts