pansihub command-line tools.
Project description
pancli
Pancli (also known as Pansi Cli), is a tool for running scrapy spider or interact to ScrapyDD.
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 parameter which is the -f
parameter which specify a FIGURE file that all parameters of a spider can be writen in a simple JSON/YAML file. If you run spider verfy often, FIGURE file can save your life.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file pancli-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: pancli-0.1.4-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
93e81d7c716bfea887ae8eb20c2abf02a5ef6aca5d9d2ac69d376154ab0ccd74
|
|
MD5 |
ad9e34fb3093b393f6bb7ff2126e333e
|
|
BLAKE2b-256 |
db44c9bdba880779ba15f8f61c6e9cc20014944e2ab495edcd0b32e63708422e
|