Description
iaTorrent snatches all of the torrents for a given collection in the Internet Archive.
You’ll need a json file for all the items in the collection with at least the title and identifier. You can get that from the Internet Archive advanced search page. You’ll need Query parameters as well. I grab the parameters from the ‘All items (most recently added first) link on a collection page.
Example:
York University Library collection Query parameters:
(collection:yorkuniversity AND format:pdf) AND -mediatype:collection
Fields to return: identifier, title Number of results: 2608 (number of items in the collection)
Installation
iaTorrent is a single-file python module that you can drop into your project as needed or you can install globally with:
pip install iaTorrent
or
cd ia-torrent sudo python setup.py install
Usage
From python you can use the iaTorrent module to snatch a collection of torrents like this:
import iaTorrent
torrent = iaTorrent.download_torrents('url_for_json', 'path_to_download_directory')
Or from the commandline:
iaTorrent.py -f 'url_for_json' -d 'path_to_download_directory'
Test suite
python setup.py test
Development
Do something awesome!
Submit a pull request explianing what your plugin does
License
CC0 - Public Domain
Metadata
Release files for iaTorrent 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iaTorrent-0.1.4.linux-x86_64.tar.gz | Details |
Release files / iaTorrent-0.1.4.linux-x86_64.tar.gz
| Download URL | iaTorrent-0.1.4.linux-x86_64.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d75603743b45c8cc547b6ccfe42ce422c902783cff3f2066e394f09fb5559510
|
|
BLAKE2b-256 checksum How to use checksums |
be79776fd8dbd91095a2bbf5678faa27990e02131c6489b67cec259af1d3a72e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for iaTorrent 0.1.4
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.