New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

phantombuster-sdk

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phantombuster-sdk

Phantombuster's SDK

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
0
Created
Source

phantombuster-sdk

https://phantombuster.com/

Provides the phantombuster command to facilitate development of scripts for Phantombuster.

To install:

npm install -g phantombuster-sdk (recommended)

or

npm install -D phantombuster-sdk

For now, the only feature provided is the uploading of scripts via Phantombuster's API.

phantombuster.cson

The SDK works with phantombuster.cson. This file must be located alongside the scripts, in the same directory (or a parent directory).

This file is simple and self explanatory. The small example below is enough to understand everything:

[
    name: 'Excellent project 1' # Arbitrary name, only used for logs
    apiKey: 'xxxx' # Phantombuster API key (which identifies the account)
    # Mappings of Phantombuster script names to local script files (relative to the phantombuster.cson file)
    scripts:
        'scraping.js': 'project1/scraping.js'
        'export.js': 'project1/export.js'
,
    name: 'Cool project 2'
    apiKey: 'another xxxx'
    scripts:
        'some-casperjs-browsing.js': 'folder/script.js'
]

Usage

phantombuster [-c config.cson] [script.coffee [other.coffee...]]

  • The most typical usage is to watch for file modification while coding. Simply execute phantombuster in a directory containing phantombuster.cson.
  • Specify a different file than phantombuster.cson: phantombuster -c config.cson
  • Upload a specific script to Phantombuster (without watching): phantombuster project/script.coffee (must be a value in one of the scripts objects in phantombuster.cson)
  • Update your whole project: phantombuster project/*.coffee

See the full documentation here: https://hub.phantombuster.com/docs/sdk

Keywords

phantombuster

FAQs

Package last updated on 16 Oct 2024

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