Coder Social home page Coder Social logo

get_torrent's Introduction

GetTorrent: an API for sharing

GetTorrent is an API for peer to peer file sharing sites like The Pirate Bay.

File sharing sites are awesome, but they're a total pain for developers. Some have terribly formatted HTML, others protect from robots. To make it worse (for devs at least), there are tons of them.

GetTorrent takes care of these inconsistencies so you don't have to

>>> tpb = GetTorrent('../../sources/pirate_bay.json')
>>> tpb.search('ubuntu', sort='seeders')
{
	'title': 'Ubuntu 12.10',
	'seeders': '64',
	'leechers': '8',
	'magnet': 'magnet:...',
	'url': '/torrent/...'
}
...

Magic.

get_torrent's People

Contributors

aaasen avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

imclab

get_torrent's Issues

Generalize Parsing

TPB has easy to parse comments. KAT has very difficult to parse comments, but ratings for every torrent.

This goes along with #2; parsing must be fail-safe and generalized. Maybe there shouldn't even be a search function be default. It's something to investigate after #2, because uniform data from every site just isn't possible.

Graceful Failure

Right now, if a source doesn't have a certain parser, everything breaks. Instead, it should gracefully fail and return a placeholder value like None

Likewise, everything breaks if a parser fails. An error message or ommission would be a lot better.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.