如何使用JavaScript从动态网站下载数据?

时间:2021-09-15 22:30:15

I want to download some data from a dynamic website i.e. football match scores in real time. Can I do that by running a script on the website? If yes, please tell me how. Otherwise tell me how I can do it.

我想从动态网站下载一些数据,即实时足球比赛得分。我可以通过在网站上运行脚本来做到这一点吗?如果是,请告诉我如何。否则告诉我如何做到这一点。

1 个解决方案

#1


What you want to do is called Screen Scraping. There are many ways to do it, it depends on your field of application. You can use a JavaScript bookmarklet oder download the whole website with the language you like and parse the content.

你想做什么叫做Screen Scraping。有很多方法可以做到这一点,这取决于您的应用领域。您可以使用JavaScript书签或用您喜欢的语言下载整个网站并解析内容。

Found a short explanation here https://myhelpster.com/what-is-scraping-the-basics-for-everyone/

在这里找到一个简短的解释https://myhelpster.com/what-is-scraping-the-basics-for-everyone/

#1


What you want to do is called Screen Scraping. There are many ways to do it, it depends on your field of application. You can use a JavaScript bookmarklet oder download the whole website with the language you like and parse the content.

你想做什么叫做Screen Scraping。有很多方法可以做到这一点,这取决于您的应用领域。您可以使用JavaScript书签或用您喜欢的语言下载整个网站并解析内容。

Found a short explanation here https://myhelpster.com/what-is-scraping-the-basics-for-everyone/

在这里找到一个简短的解释https://myhelpster.com/what-is-scraping-the-basics-for-everyone/