Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to oddsportal website means that scraper now fails #8

Open
CanProjects opened this issue Jan 14, 2023 · 12 comments
Open

Update to oddsportal website means that scraper now fails #8

CanProjects opened this issue Jan 14, 2023 · 12 comments

Comments

@CanProjects
Copy link

No description provided.

@pferreira8
Copy link

Sadly dealing with this issue too. I've used this code for going on 2 years now in my nba model pipeline. I'm not the developer of this project but I will try and identify the root issue.

@ApuestasPPH
Copy link

I miss the old Odds Portal website does this code still work with the New Site?

@cardchase
Copy link

https://codereview.stackexchange.com/questions/283181/code-scraping-oddsportal-using-beautifulsoup

Yep, I posted the question. This code works better as the new site is an infinite scrolling site so the more you scroll, the more odds you get.

@andrewting19
Copy link

Thanks for the code! Do you know of any way to scrape the historical odds on the results pages?

@cardchase
Copy link

Thanks for the code! Do you know of any way to scrape the historical odds on the results pages?

Replace the page url with the page you'd like to scrape. Usually the date works fine from 1 jan 23 onwards.

@andrewting19
Copy link

Unfortunately doesn't work for links like this one (https://www.oddsportal.com/esports/usa/league-of-legends-lcs/results/). I ended up writing my own janky code to do it lol

@CanProjects
Copy link
Author

Unfortunately doesn't work for links like this one (https://www.oddsportal.com/esports/usa/league-of-legends-lcs/results/). I ended up writing my own janky code to do it lol

I have my own league of legends pipeline (its actually why I asked this question but i ended up writing the scraper code myself and scraping it) but I have been unable to obtain a superior logloss to the regular betting odds, have you been able to fit a meaningful model?

@andrewting19
Copy link

Haven't tried moneyline yet. I'm using the odds as a feature for modeling kills instead.

@SSaltyyy
Copy link

Unfortunately doesn't work for links like this one (https://www.oddsportal.com/esports/usa/league-of-legends-lcs/results/). I ended up writing my own janky code to do it lol

Could you post it? Or if someone could update the original scrapeOP...

@SSaltyyy
Copy link

Thanks for the code! Do you know of any way to scrape the historical odds on the results pages?

Replace the page url with the page you'd like to scrape. Usually the date works fine from 1 jan 23 onwards.

Result pages are without infinite scrolling so this doesn't work.

@oconbball4
Copy link

https://codereview.stackexchange.com/questions/283181/code-scraping-oddsportal-using-beautifulsoup

Yep, I posted the question. This code works better as the new site is an infinite scrolling site so the more you scroll, the more odds you get.

How do I implement this code? Looking through it not sure where to change the settings on what sport. Trying to pull league of legends historical data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants