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
)
Metadata
Release files for spdclient 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spdclient-0.0.1.tar.gz | 14.6 kB | Without provenance | Details for spdclient-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spdclient-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for spdclient-0.0.1-py3-none-any.whl |
Total release size: 18.1 kB
Release files / spdclient-0.0.1.tar.gz
| Download URL | spdclient-0.0.1.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0870b72ef12d241261a91e1f4e7d8fbc08d4c795a17790d12234f902c5c4b23
|
|
BLAKE2b-256 checksum How to use checksums |
db446da00338d0a1c6e5c3bba544ea9def893cc7cb079d39341ccdc8d5f91b26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.1
|
Release files / spdclient-0.0.1-py3-none-any.whl
| Download URL | spdclient-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f4621f609a2176a3a0537ac831fb870088b8e6aa7aa4a76b539cfcff5384b69
|
|
BLAKE2b-256 checksum How to use checksums |
5a44e1755d8f863b3a386d209bdff83404395057a318b601b86fafc1282b9203
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.1
|
Security for spdclient 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.