[英]Scraping a website with javascript commands (Jsoup)
I want to scrape a website but it has javascript commands that create elements that I want to get into my program. 我想抓取一个网站,但是它具有javascript命令,这些命令创建了我想进入程序的元素。 How can I execute the javascript commands on this website and than scrape it after it has the new elements?
我如何在此网站上执行javascript命令,并在包含新元素后将其抓取? I am using Jsoup library for scraping and java ofc.
我正在使用Jsoup库进行抓取和Java ofc。
Take a look on Selenium WebDriver . 看看Selenium WebDriver 。
You can find many examples, eg http://www.frontendtest.org/blog/selenium-webdriver-example-java/ 您可以找到许多示例,例如http://www.frontendtest.org/blog/selenium-webdriver-example-java/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.