简体   繁体   中英

Web scraping hidden table in R/Python

I would like to scrape the table in this website: http://www.eloratings.net/2000 . I can see the table when I'm inspecting the elements, but it is hidden from source, hence I can't scrape it with the usual methods.

Can you help me with that? Any help either in R or Python would be highly appreciated.

The table is built using XHR calls like:

http://www.eloratings.net/teams.tsv?_=1615377480093
http://www.eloratings.net/tournaments.tsv?_=1615377480094
http://www.eloratings.net/en.labels.tsv?_=1615377480096

Use the browser F12 (devtools) -> Network -> XHR and see the calls you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM