Git Product home page Git Product logo

getnews's Introduction

**新闻爬虫

默认从以下网站获取新闻:

**新闻网(ZXW)

网易新闻(163)

人民网(RMW)

新浪(SINA)

凤凰资讯(IFENG)

配置(在GetChinaNews.py中修改):

defaultSiteList = ["ZXW","163","RMW","SINA","IFENG"] #新闻源站点设置,默认5个站点都获取

argD = os.getcwd()+os.path.sep+'dataNews'#抓取的新闻目录设置

命令执行说明:

python GetChinaNews.py 获取当天新闻(对于163和RMW这个无效,因为它们的滚动新闻页面没有当天的)

python GetChinaNews.py -d 2013-11-12 获取2013-11-12这一天的新闻

python GetChinaNews.py -d 2013-11-12 2013-11-14 获取2013-11-12到2013-11-14之间的新闻

python GetChinaNews.py -dx 2013-11-12 5 获取2013-11-12之后5天的新闻

python GetChinaNews.py -a 获取最近30天内的新闻

getnews's People

Contributors

mankunzhao avatar

Watchers

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