使用两层爬行方法实现延迟表示
Archiving Deferred Representations Using a Two-Tiered Crawling Approach
摘要:
网络资源的交互性越来越强,导致资源越来越难以存档。归档的困难在于客户端技术的使用(例如,JavaScript)在表示最初加载后更改表示的客户端状态。我们将这些陈述称为延期陈述。我们可以使用无头浏览客户端等工具更好地归档延迟表示。我们使用10,000个种子通用资源标识符(URI),通过比较wget(基线),eXtomJS和Heritrix的性能来探索将eXtomJS(一种无头浏览工具)纳入爬行过程的影响。Heritrix每秒抓取2.065个URI,比WebtomJS快12.15倍,比wget快2.4倍。然而,AtomJS发现了531,484个URI,是Heritrix的1.75倍,是wget的4.11倍。为了充分利用Heritrix的性能优势和EritomJS的URI发现功能,我们推荐一种分层爬取策略,在这种策略中,分类器会预测一个表示是否会被延迟,只有具有延迟表示的资源才会被EritomJS爬取,而没有延迟表示的资源则会被Heritrix爬取。我们表明,这种方法比只使用Heritrix快5.2倍,并且创建的边界(要爬取的URI集)比只使用Heritrix大1.8倍。
英文摘要:
Web resources are increasingly interactive, resulting in resources that are increasingly difficult to archive. The archival difficulty is based on the use of client-side technologies (e.g., JavaScript) to change the client-side state of a representation after it has initially loaded. We refer to these representations as deferred representations. We can better archive deferred representations using tools like headless browsing clients. We use 10,000 seed Universal Resource Identifiers (URIs) to explore the impact of including PhantomJS -- a headless browsing tool -- into the crawling process by comparing the performance of wget (the baseline), PhantomJS, and Heritrix. Heritrix crawled 2.065 URIs per second, 12.15 times faster than PhantomJS and 2.4 times faster than wget. However, PhantomJS discovered 531,484 URIs, 1.75 times more than Heritrix and 4.11 times more than wget. To take advantage of the performance benefits of Heritrix and the URI discovery of PhantomJS, we recommend a tiered crawling strategy in which a classifier predicts whether a representation will be deferred or not, and only resources with deferred representations are crawled with PhantomJS while resources without deferred representations are crawled with Heritrix. We show that this approach is 5.2 times faster than using only PhantomJS and creates a frontier (set of URIs to be crawled) 1.8 times larger than using only Heritrix.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。