Export data from website

조회 수: 14 (최근 30일)
Lodewijk Pleij
Lodewijk Pleij 2021년 3월 9일
편집: Rik 2021년 3월 10일
I am trying to export betting odds from the following link: https://www.unibet.eu/betting/sports/filter/football/netherlands/eredivisie/matches
The plan is to export these number (let's say) every hour and then analyse how they change over time. Right now I have the following code with which I have imported the data from this link.
block = urlread('https://www.unibet.eu/betting/sports/filter/football/netherlands/eredivisie/matches');
The problem now is that I do not have the knowledge to extract the relevant data. The relevant data would be:
The teams that are playing, the date and time at which they are playing, the odds that unibet gives.
Does anyone know how to do this and is willing to help me with this problem?
Thank you for reading.
  댓글 수: 5
Lodewijk Pleij
Lodewijk Pleij 2021년 3월 10일
The webpage loads the information when you open it in your browser. That is why the information cannot be uploaded with webread only. I will have to try and let matlab open the webbrowser or something like that. I found some videos about it on youtube, but they are for python only.
Rik
Rik 2021년 3월 10일
편집: Rik 2021년 3월 10일
That might not be required. Some websites use Javascript to dynamically load data. The backend is usually loaded in JSON format. If you use your browser debugging tools (ctrl+shift+i on Chrome) you might be able to find the direct URL.
My first try turned up a page like this:
If this is indeed the correct URL you only have to find you if you need to update that ncid field.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 JSON Format에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by