arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.00025cs.DC
收藏

Anywhere:一个网络爬虫自动化管理界面

Anywhere: A Web Crawler Automation Management Interface

Jinwei Lin

AI总结:

本文提出 Anywhere 框架,通过预设模板快速生成项目、可重复配置和文件夹式多项目管理,将 Scrapy 爬虫开发效率提升至约 200% 至 300%。

摘要:

在当前信息时代,网络爬虫项目或设计具有重要意义。使用网络蜘蛛或爬虫可以自动搜索并收集海量互联网信息。作为最流行的网络爬虫框架之一,Scrapy 功能丰富但操作便捷性较弱。本文提出了一个框架 Anywhere,用于优化 Scrapy 网络爬虫管理的使用体验并提高使用效率。我们分析了 Scrapy 网络爬虫项目的完整工作流程,并在 Anywhere 中设计了两个主要功能:一是利用预设模板快速生成 Scrapy 项目,二是针对 Scrapy 项目设置提供可重复配置功能。此外,借助 Anywhere,用户可以通过文件夹架构轻松直接管理多个 Scrapy 项目。与常规的 Scrapy 项目交互式编码开发相比,我们对 Anywhere 进行了充分的实验测试,结果表明 Anywhere 能够将 Scrapy 项目的开发效率提升至约 200%。在代码交互层面的多项目管理中,开发效率提升至约 300%。我们简化了使用 Scrapy 快速生成简单爬虫项目的流程。Anywhere 能够辅助 Scrapy 开发,对于在编码层面设计大规模并发项目具有实用价值。

英文摘要:

Web crawling projects or design is significant in the current information age. Using the web spider or crawler can automatically search and collect a huge amount of internet information. As one of the most popular web crawler frameworks, Scrapy is robust in abundant functions but weak in easy operation. In this paper, we provide a framework Anywhere, for optimising the usage feeling and improving the use efficiency of the web crawling management of Scrapy. We analyse the whole workflow of a web crawling project of Scrapy and design two main functions in Anywhere, one is quickly generating a Scrapy project with the preset temperatures, the other is repeatable configuration function for the Scrapy project setting. Beside, with Anywhere, users can easily directly manage multiple Scrapy projects with a file folders architecture. Compared with normal Scrapy project interactive coding development, we test Anywhere with enough experiments that show Anywhere can improve the development efficiency of Scrapy projects to about 200\%. For the multiple project management in code interaction level, the developing efficiency is improved to about 300\%. We simplify the procedure to quickly generate a simple spider project with Scrapy. Anywhere can assist the development of Scrapy is useful for the design of large batch concurrent projects at coding level.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑