18 lines
386 B
Python
18 lines
386 B
Python
|
import requests
|
||
|
from yggtorrentscraper import YggTorrentScraper
|
||
|
|
||
|
scraper = YggTorrentScraper(requests.session())
|
||
|
|
||
|
from yggtorrentscraper import set_yggtorrent_tld
|
||
|
|
||
|
set_yggtorrent_tld("se")
|
||
|
|
||
|
if(scraper.login("kopa4", "Ck695bvkyvPT0PJeYMOPUc")):
|
||
|
print("Login success")
|
||
|
else:
|
||
|
print("Login failed")
|
||
|
|
||
|
torrents_url = scraper.search({'name' : "walking dead s08"})
|
||
|
|
||
|
print(torrents_url)
|