Python Wrapper for Scrapyd WebService
Project description
spdclient
spdclient is a python wrapper around scrapy's scrapyd webservice for ease of use.
Basics
Install
pip install spdclient
Basic Usage
from spdclient import SPDClient
client = SPDClient(
host, # Scrapyd Server default 127.0.0.1
port, # Scrapyd Server port default 6800
username=None, # Scrapyd Server Basic Auth Username if enabled
password=None, # Scrapyd Server Basic Auth Password if enabled
is_https=False # Is the server secured on https or not.
)
response=client.daemonstatus()
Endpoints
/daemonstatus.json
response=client.daemon_status()
/addversion.json
response=client.add_version(
project:str, # Project Name
egg:str, # Egg File Path
version:str=None # Version defaults to None for auto
)
/schedule.json
response=client.schedule(
project: str, # Project Name
spider: str, # Spider Name
setting: dict = None, # Spider Settings Eg:{'DOWNLOAD_DELAY':10}
jobid: str = None, # Unique jobid defaults to None for auto UUID4
priority: float = None, # Priority defaults to 0
version: str = None, # Version to schedule on
spider_args: dict = None, # Spider Args Eg:{'URL':'www.google.com'}
)
/cancel.json
response=client.cancel(
project:str, # Project Name
job:str # Unique Job ID
)
/listprojects.json
response=client.list_projects()
/listversions.json
response=client.list_versions()
/listspiders.json
response=client.list_spiders(
project:str, # Project Name
version:str=None # Version Name defaults to None for latest version
)
/listjobs.json
response=client.list_jobs(
project:str=None # Project Name use for project specific job group
)
/delversion.json
response=client.delversion(
project: str, # Project Name
version: str # Version Name to delete for the above project.
)
/delproject.json
response=client.delproject(
project: str # Project Name for project to delete
)
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
spdclient-0.0.1.tar.gz
(14.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spdclient-0.0.1.tar.gz.
File metadata
- Download URL: spdclient-0.0.1.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0870b72ef12d241261a91e1f4e7d8fbc08d4c795a17790d12234f902c5c4b23
|
|
| MD5 |
3376e55c12b745a9d59e0d8c0cba2d0e
|
|
| BLAKE2b-256 |
db446da00338d0a1c6e5c3bba544ea9def893cc7cb079d39341ccdc8d5f91b26
|
File details
Details for the file spdclient-0.0.1-py3-none-any.whl.
File metadata
- Download URL: spdclient-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f4621f609a2176a3a0537ac831fb870088b8e6aa7aa4a76b539cfcff5384b69
|
|
| MD5 |
1259c91e316bb5a21ee6e474d16aa58e
|
|
| BLAKE2b-256 |
5a44e1755d8f863b3a386d209bdff83404395057a318b601b86fafc1282b9203
|