检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:左卫刚 ZUO Wei-gang(Shanxi Management Vocational College, Linfen Shanxi 041051, China)
出 处:《长春师范大学学报》2018年第12期29-33,共5页Journal of Changchun Normal University
摘 要:本文开发了一套基于Python的网络爬虫,并预留API,从而构建一个新闻聚合系统。新闻聚合系统中的新闻数据需要爬虫来获取,然而不同的网站有不同的页面布局,本研究旨在创建一个能够从不同页面布局中提取数据的开源爬虫,其中包括网络爬虫、API、网络爬虫调度器以及Socket服务器的实现等。开发过程中使用Python语言开发网络爬虫,利用Beautiful Soup作为网络爬虫的web提取工具,以Laravel为web应用程序框架,以PHP作为主要后端语言,承载CMS和API。网络爬虫可以通过利用用户创建的配置文件来适应从不同的页面布局中提取数据,并将提取的数据导出到JSON文件或数据库系统中。This paper develops a Python-based web crawler and reserves the API to construct a news aggregation system.The news data in the news aggregation system needs to be acquired by the web crawler,but different websites have different page layouts.This study aims to create an open source crawler able to extract data from different page layouts,including the implementation of web crawler,API,web crawler scheduler and Socket server.In the development process,Python language is applied to develop the network crawler,BeautifulSoup is used as the web extraction tool of the web crawler,Laravel is adopted as the web application framework,PHP is used as the main back-end language to support CMS and API.Web crawler can adapt to different page layouts and extract data from them by using the configuration files created by users and export the extracted data to JSON file or database system.
关 键 词:网络爬虫 HTML提取 新闻管理系统 应用程序接口
分 类 号:TP391[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.224.2.133