Requiered only for download torrent's file if ( scraper. I highly recommend you to not use your main account, YggTorrent ban bots Session is requiered to download torrent Login (optionnal) YggTorrent TLD is change regularly, you can specify it at YggTorrentScraper construction with optionnal parameters yggtorrent_tld from yggtorrentscraper import set_yggtorrent_tld set_yggtorrent_tld ( "new_tld" ) Chrome ( "D:\chromedriver.exe", options = options ) scraper = YggTorrentScraperSelenium ( driver = driver ) #OR scraper = YggTorrentScraperSelenium ( driver_path = "D:\chromedriver.exe" ) Change TLD add_experimental_option ( "excludeSwitches", ) driver = webdriver. add_argument ( "-disable-blink-features=AutomationControlled" ) options. add_argument ( "-disable-blink-features" ) options. Selenium version from yggtorrentscraper import YggTorrentScraperSelenium from selenium import webdriver options = webdriver. set_cookie ( cookie ) scraper = YggTorrentScraper ( session ) import requests from yggtorrentscraper import YggTorrentScraper cookie = requests. The easiest solution is to set « cf_clearance » cookie manually, you can find it in your browser. Installation pip install yggtorrentscraperĬlone this repository and pip install -r requirements.txtĪctual cloudflare bypassers like seem to have some difficulties for now.
0 Comments
Leave a Reply. |