Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Web scraping 我可以让htmlunit刮板在多页上工作吗?_Web Scraping_Htmlunit - Fatal编程技术网

Web scraping 我可以让htmlunit刮板在多页上工作吗?

Web scraping 我可以让htmlunit刮板在多页上工作吗?,web-scraping,htmlunit,Web Scraping,Htmlunit,我有一个关于htmlunit scraper的问题。我知道scraper通过html元素的名称获取信息。我可以让htmlunit scraper在多页上工作吗 htmlunit是一个库,你可以编写一些代码来处理多个页面,或者我遗漏了什么吗?我的意思是,如果我在不同的网站上有20个页面,我可以制作一个程序来删除它们吗?或者必须为每个页面制作刮刀?如果它们是X%相同的东西,您可能可以编写重用X%的代码

我有一个关于htmlunit scraper的问题。我知道scraper通过html元素的名称获取信息。我可以让htmlunit scraper在多页上工作吗

htmlunit是一个库,你可以编写一些代码来处理多个页面,或者我遗漏了什么吗?我的意思是,如果我在不同的网站上有20个页面,我可以制作一个程序来删除它们吗?或者必须为每个页面制作刮刀?如果它们是X%相同的东西,您可能可以编写重用X%的代码