Closed jorismi closed 2 years ago
Same here. Stuck on CloudFlare. I'm on macos.
Hi, I have found a solution
First install undetected_chromedriver
pip install undetected-chromedriver
This example is working for me
from yggtorrentscraper import (
YggTorrentScraper,
set_yggtorrent_tld,
YggTorrentScraperSelenium,
)
from selenium import webdriver
import undetected_chromedriver.v2 as uc
if __name__ == "__main__":
options = webdriver.ChromeOptions()
options.add_argument("--log-level=3")
options.add_argument("--disable-blink-features")
options.add_argument("--disable-blink-features=AutomationControlled")
driver = uc.Chrome("C:\chromedriver.exe", options=options)
scraper = YggTorrentScraperSelenium(driver=driver)
urls = scraper.search({"name": "walking dead s08"})
print(urls)
Awesome Harkame, it's working !!
I just had to add this line because I have multiple profile on my chrome and at first it was stuck on the selection profile page :
options.add_argument('--user-data-dir=c:\\temp\\default')
Thanks for your help, wonderful job =)
Hi,
i'm trying to use your solution by I have an infinite loading on the page "Checking your browser ...."
I just want to make a search to see if a certain item is available on yggtorrent, I don't need to login.
This is how I use your code, tell me if I'm doing something wrong.
Thank you for your help