Code Monkey home page Code Monkey logo

zhongxin_search's Introduction

zhongxin_search

**新闻网爬虫

**新闻网高级搜索接口爬虫 http://sou.chinanews.com/search.do?q=%E7%9A%84 搜索关键字 “的” (详情页数量600万)

可用时间至2019.7.13

已集成多线程,url查重,异常更换代理,翻页,错误信息存储(10线程每日抓取数量为15万-20万左右)。

适用于文本分析,文本分类。词向量提取

环境:

py3.7

第三方库:

requests pymysql lxml

功能模块:

  • Spider_action 多线程调度以及程序启动

  • save_text 文本分类存储

  • request_model 请求模块,异常重试或使用代理

  • ip_pool 代理池维护模块

  • get_url_list 列表页请求模块

  • get_detail_page 详情页请求模块

  • mysql_model 数据库增删改查

注:

  • 过于久远的详情页页面规则会改动,需要自行维护。

  • 需更换ip_poll模块下代理api

  • 需要更换mysql_model 数据库信息

  • 列表页抓取未完成查重,需要每次启动定义post请求参数(翻页参数为页数*100,增量)

  • 启动Spider_action_detail会自动创建相关数据库及文本路径信息

zhongxin_search's People

Contributors

sph116 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.