Skip to main content

This module 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)

Example

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

  1. Fork the repository

  2. Do something awesome!

  3. Submit a pull request explianing what your plugin does

License

CC0

CC0 - Public Domain

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

iaTorrent-0.1.4.linux-x86_64.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file iaTorrent-0.1.4.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for iaTorrent-0.1.4.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 d75603743b45c8cc547b6ccfe42ce422c902783cff3f2066e394f09fb5559510
MD5 d1437dbfdf86273667e4d25649ca0d96
BLAKE2b-256 be79776fd8dbd91095a2bbf5678faa27990e02131c6489b67cec259af1d3a72e

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page