A UDP torrent tracker scraper written in Python 3
Project description
Torrent Tracker Scraper
A UDP torrent tracker scraper written in Python 3
Installation
pipenv install torrent-tracker-scraper
pipenv shell
Usage
Pass in a list of infohashes
from torrent_tracker_scraper import scraper
scraper = scraper.Scraper(infohashes=['82026E5C56F0AEACEDCE2D7BC2074A644BC50990', '04D9A2D3FAEA111356519A0E0775E5EAEE9C944A'])
results = scraper.scrape()
print(results)
[
...,
{'tracker': 'udp//:explodie.org:6969',
'results': [
{
'infohash': '82026E5C56F0AEACEDCE2D7BC2074A644BC50990',
'seeders': 246,
'completed': 0,
'leechers': 36
},
{
'infohash': '04D9A2D3FAEA111356519A0E0775E5EAEE9C944A',
'seeders': 7,
'completed': 0,
'leechers': 27
}
]
},
...
Get your scrapped information
Pass in a list of trackers
from torrent_tracker_scraper import scraper
scraper = scraper.Scraper(trackers=['udp//:explodie.org:6969'], infohashes=['82026E5C56F0AEACEDCE2D7BC2074A644BC50990', '04D9A2D3FAEA111356519A0E0775E5EAEE9C944A'])
results = scraper.scrape()
print(results)
[
...,
{'tracker': 'udp//:explodie.org:6969',
'results': [
{
'infohash': '82026E5C56F0AEACEDCE2D7BC2074A644BC50990',
'seeders': 246,
'completed': 0,
'leechers': 36
},
{
'infohash': '04D9A2D3FAEA111356519A0E0775E5EAEE9C944A',
'seeders': 7,
'completed': 0,
'leechers': 27
}
]
},
...
Testing
pipenv install --dev
pipenv run pytest
Help/Contributing
Use the normal GitHub bug reporting flow i.e Create an issue here https://github.com/49e94b8f256530dc0d41f740dfe8a4c1/torrent-tracker-scraper/issues.
Fork the code, make your changes and create a pull request.
Contributors
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for torrent-tracker-scraper-3.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ebcc2c1ab4cbb83b6288d8e16daab369406d665bfc686d7298ab3c73776044f |
|
MD5 | 248c82e0bf5530eb354082bf9aef90d5 |
|
BLAKE2b-256 | b968c1eaa137e41fee245dac7bfab4c8ed9433df97a0618f5506bf15c89ef44a |
Close
Hashes for torrent_tracker_scraper-3.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c96c9b990ddb7c526c036ec8c3f068f763090b324061c8b8f87fc156ebb8941 |
|
MD5 | 406afe1902401d7827d21e354f52a1fd |
|
BLAKE2b-256 | 1018c24b76b7bd73f3ea35d80444f3f5a9f887ae33546af7f3553661200b7e34 |