A cli interface to interact with screenapi
Project description
screenapi-cli
Installation
python -m pip install screenapi-cli
screenapi-cli --help
Step 1 - setup cli
screenapi-cli setup --api-url "<api-url>" --api-key "<api-key>" --concurrency 15
check all options with screenapi-cli setup --help
Step 2 - start scraping
touch urls.txt # create a urls.txt file and add urls, one line == one url
screenapi-cli scrape urls.txt #
check all options with screenapi-cli scrape --help
Step 3 - export to execl sheet
screenapi-cli export --input-dir "<path to scraper's output>" # check below
-
example : scraped flipkart urls, and export execl file in default location
screenapi-cli export --input-dir "flipkart" # `flipkart` will convert into `/path/to/screenapi-cli/config/output/flipkart` and --output-file will be `/path/to/screenapi-cli/config/output/flipkart.xlsx` and --sort-by will be `sl`
-
example: custom input-dir , custom output-file
screenapi-cli export --input-dir "~/Downloads/scraped" --output-file "./flipkart.xlsx"
command: screenapi-cli list
[default]
output_dir = /path/to/output
concurrency = 15
api_url = *****************
api_key = *************************
namespace = ******-****-****-****-*********
export_dir = /path/to/export
check all options with screenapi-cli export --help
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 Distribution
screenapi_cli-0.1.1.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for screenapi_cli-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba1a5cc0ec8d032718a7a3b290874f08b7356b78ccdf0fa870dfd6aa1b996278 |
|
MD5 | 2c6bd778e1d171475c30918b5d1d986c |
|
BLAKE2b-256 | dcafdf1fc79e4e01e0d1dc8ca4294cb9b7e46a1c6c96fba9f73874e2fa47e2b9 |