Code Monkey home page Code Monkey logo

allnewsspider's Introduction

env

必须是 python 3.6.6 64 bit windows/linux/mac

如果要爬取纽约时报,则需要使用urllib3的1.25.11版本,否则代理可能出错

intro

新浪新闻,腾讯新闻,搜狐新闻,澎湃新闻。

短期目前旨在爬取所有新闻门户网站的新闻,每个门户网站爬虫开箱即用,并自动保存到同目录下的 csv/excel 文件中,禁止将所得数据商用。

长期目标是打造一个信息流聚合平台,或者进行更高层面的比如社会舆情、新闻地理可视化等的处理。

集成该爬虫的网站已上线,体验地址:

https://xt98.tech:9494 http://buyixiao.xyz

http://8.142.38.214

项目长期维护,欢迎 star,项目更多信息欢迎关注个人微信公众号 【月小水长】

how to use

每个文件夹下的代码就是对应平台的新闻爬虫

py 文件直接运行

pyd 文件需要,假设为 pengpai_news_spider.pyd

  1. 将 pyd 文件下载到本地,新建项目,把 pyd 文件放进去

  2. 项目根目录下新建 runner.py,写入以下代码即可运行并抓取

    import pengpai_news_spider
    pengpai_news_spider.main()

todo

1、百度新闻爬虫,已完成,已发布

2、澎拜新闻爬虫,已完成,已发布

3、腾讯新闻爬虫,已完成,已发布

4、新浪新闻爬虫,已完成,已发布

5、纽约时报爬虫,已完成,已发布

6、泰晤士报爬虫,已完成,已发布

7、BBC新闻爬虫,已完成,已发布

allnewsspider's People

Contributors

inspurer avatar awxiaoxian2020 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.