S1M0N38 / soccerapi

soccerapi, an unambitious soccer odds scraper ⚽️
MIT License
161 stars 36 forks source link

Cannot Parse BET365 and UniBet #30

Closed cardchase closed 3 years ago

cardchase commented 3 years ago

As of yesterday, I am trying to parse BET365 however unsuccessful. Can you please help me if I am missing anything. Cannot Parse

muuusso commented 3 years ago

The urls to pass to obtain bet365 odds are not the same anymore since the last commits. In the "competitions" branch we're introducing a method called "competition" for every bookmaker class which returns a list of the competitions available for the bookmaker with the relative url. By the way the new work around to get the 'x-net-sync-term' header of bet365 it's not perfect: try to create new objects of the ApiBet365 class as less frequent as you can. Every time you create a ApiBet365 object it will ask bet365 to get that header and if you do it too often (more than once every 10 minutes) they will block your IP.