This package can be used to snatch torrents for each collection object from a given Internet archive collection.
Project description
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
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
File details
Details for the file iaTorrent-0.1.4.tar.gz
.
File metadata
- Download URL: iaTorrent-0.1.4.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c887521cf0038e532991d4d4fca9a69c77df1e9bcc1e262d6bddf03a8e843fc |
|
MD5 | ca1a3b03c2388adecbba7e217e02755b |
|
BLAKE2b-256 | 216bdfe853dd657a8914ce808b0e3818c3feecfcdac36640891d5835c9c7a2bc |