Skip to content

obnoxiousmods/python-iptorrents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-iptorrents

a iptorrents search scraper + download .torrent

make sure to replace cookies in cookies.py

instance = IPTorrents(beAsync=False, debugInfo=True)
searchResults = instance.search(
    "oppenheimer",
    o="seeders",
)
instance.downloadTorrent(
    torrentLink=searchResults['results'][0]['dotTorrentDownloadLink'],
    directory='.',
)

also

instance = IPTorrents(beAsync=True, debugInfo=True)
await searchResults = instance.asyncSearch(
    "oppenheimer"
    o="seeders",
)
await instance.downloadTorrent(
    torrentLink=searchResults['results'][0]['dotTorrentDownloadLink'],
    directory=".",
)

should work with asyncio and trio, and i imagine anyio and curio idk for sure tho, didnt even test it

About

python-iptorrents search API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages