This project is a simple wrapper around the What.cd AJAX API. Also compatible with what-like trackers such as pth/apollo.
Available via PyPI via pip:
# pip install whatapi
Example usage:
>>> import whatapi
>>> apihandle = whatapi.WhatAPI(username='me', password='secret')
>>> apihandle.request("browse", searchstr="Talulah Gosh")
...
>>> apihandle.get_torrent(1234567)
...
To use another tracker:
>>> import whatapi
>>> apihandle = whatapi.WhatAPI(username='me', password='secret',
server='https://passtheheadphones.me')
>>> apihandle.request("browse", searchstr="The Beatles")
...
It’s strongly recommended that your script implements saving/loading session cookies to prevent overloading the server.
Example:
>>> import whatapi
>>> import cPickle as pickle
>>> cookies = pickle.load(open('cookies.dat', 'rb'))
>>> apihandle = whatapi.WhatAPI(username='me', password='me', cookies=cookies)
...
>>> pickle.dump(apihandle.session.cookies, open('cookies.dat', 'wb'))
API available at Gwindow’s API page or via the JSON API page on What.
Metadata
Release files for whatapi 0.2.0
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 |
|---|---|---|---|---|
| whatapi-0.2.0.tar.gz | 3.6 kB | Without provenance | Details for whatapi-0.2.0.tar.gz |
Release files / whatapi-0.2.0.tar.gz
| Download URL | whatapi-0.2.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8832e01b77045875980c2e287394c3cd94eeae9939598d1c503aeb381f1833ff
|
|
BLAKE2b-256 checksum How to use checksums |
f94008e77b05a110320933f234e65db1e50350692a21407125442f806dbfeb28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for whatapi 0.2.0
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.