Skip to main content

pansihub command-line tools.

Project description

pancli

Pancli (also known as Pansi Cli), is a tool for running scrapy spider or interacting to ScrapyDD server.

install

pancli is available on pip, you can install it by simply run:

pip install pancli

commands

run a spider

run a spider is very easy by executing pancli crawl {spider_name}, the command is compatiable with scrapy crawl

One special and the most wonderful parameter is the -f parameter, which specifies a FIGURE file in which all settings/parameters/plugins of a spider can be writen as a simple JSON/YAML file. If you run spider very often, FIGURE file can save tons of time.

FIGURE fields:

  • spider: the target spider name which is the same in the scrapy list command.
  • settings: (dict) settings can be used to populate all settings at runtime, not only the literal/string values, but list/dicts

And other parameters, the more detail documentation is coming soon.

package a spider

A packaged spider is extremely portable, with one spider package and a FIGURE file, you can easily crawl the whole internet.

When your current dir is in the scope of scrapy project(with any ancient folder which contains a scrapy.cfg file), you can easily run the following commmand to build a spider package.

pancli package

If you haven't create setup.py for the project, this command will help you create one.

And this command is inspired by scrapyd-client

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pancli-0.1.5-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file pancli-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pancli-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.3

File hashes

Hashes for pancli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c436c63a456d64dc86b62273bd32c01512c3c8afa3e6749364c370e47eb0f966
MD5 cb12077ebe4e6b87e6553851051180f8
BLAKE2b-256 d2ce871c920ca09afa5773edba63dac6f593849f4e18f4975c533896674cf048

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page