gingeleski / odds-portal-scraper

Sports odds and results scraping for Odds Portal (oddsportal.com).
The Unlicense
104 stars 53 forks source link

PROBLEM WHEN LOGING ON THE WEB #33

Open Divigu opened 6 months ago

Divigu commented 6 months ago

Hello, can someone help me? When I run the code it shows me this message:

[WARNING] Problem with link, could not find Login button - https://www.oddsportal.com/basketball/usa/nba/results/

thank you so much!

peeterdog commented 1 month ago

in crawler.py changue the line 52 self.driver.find_element_by_css_selector('.loginModalBtn') im in the same situation page was updated, ypu must use browser developer console and find the selectors.

in line 88: season_links = html_querying.find('#app > div.relative.flex.flex-col.w-full.max-w-\[1350px\].font-main > div.w-full.flex-center.bg-gray-med_light > div > main > div.relative.w-full.flex-grow-1.min-w-\[320px\].bg-white-main > div.flex.flex-col.min-sm\:px-3.max-md\:mx-s0.max-md\:mt-3 > div > div.flex.flex-wrap.gap-2.py-3.text-xs.max-mm\:flex-nowrap.max-mm\:overflow-x-auto.max-mm\:overflow-hidden.max-md\:mx-3.max-sm\:\!hidden.no-scrollbar > a')