Warm tip: This article is reproduced from serverfault.com, please click

How to scrape data from a dynamic website

发布于 2020-12-01 02:54:28

I am trying to scrape data from https://bepick.net/#/game/default/nlotto_power But I am facing problems to get the live scores because it's not showing in the soup. I want to scrape this columns

Questioner
Zubayer
Viewed
0
Samsul Islam 2020-12-01 11:36:50

Use this url to extract the data. data loaded via this url. take a look inspect google chrome network tab.

url ="https://bepick.net/api/get_pattern/nlotto_power/default/fd1/20?_=1606793203624"
r = requests.get(url)
mydata =r.json()
for data in mydata['list']:
    print(data["title"])
    print(data["round"])