Giter Site home page Giter Site logo

Comments (6)

artesea avatar artesea commented on May 28, 2024 1

@helderppb that isn't a CORS issue. Your "API" requests are being redirected to localhost, which usually means your IP address has been blacklisted. If you try to open Bet365 in your browser (on the same IP) you should only get the frame of the site and no matches or odds.

from soccerapi.

athuscavalini avatar athuscavalini commented on May 28, 2024

Hi, @helderppb. I have also been experiencing problems with requests for about an hour. What response are you getting?

from soccerapi.

helderppb avatar helderppb commented on May 28, 2024

Hi @athuscavalini, it looks like a CORS error. I'm doing a few tests using Puppeteer and also Playwright, but both are showing the same issue.
image

from soccerapi.

helderppb avatar helderppb commented on May 28, 2024

@artesea No! Iā€™m able to access the website normally using the browser. This issue is happening with other persons as well. Bet365 has made changes on their system to identify headless applications. I use to do the same operations a long time, but now Iā€™m facing this problem. Try to do the process using Puppeteer. Thank you for your attention and response.

from soccerapi.

cardchase avatar cardchase commented on May 28, 2024

@artesea No! Iā€™m able to access the website normally using the browser. This issue is happening with other persons as well. Bet365 has made changes on their system to identify headless applications. I use to do the same operations a long time, but now Iā€™m facing this problem. Try to do the process using Puppeteer. Thank you for your attention and response.

Yep, me too. The site opens in the browser but unable to scrape odds.
@helderppb how could you use puppeteer with soccerapi? Considering I am assuming you could make it work.
Thanks

from soccerapi.

S1M0N38 avatar S1M0N38 commented on May 28, 2024

from README

In order to obtain data from Bet365 you need to run a docker which posts on a local server a needed header to make requests to the Bet365 api. The docker run separeately from the api since it is written in JavaScript and it runs a chromedirver to run JavaScript and acquire the header.
Checkout soccerapi-server to install the docker and run it.

from soccerapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.