Giter Club home page Giter Club logo

newscrawler's Introduction

newscrawler

新闻网站爬虫,目前能够爬取网易,新浪,qq, sohu等三家网站的新闻页面。

##Using:

python runspiders.py

##json file

The news file saved as json file:

newsId: the news's id

source: the source of the news , such as news.163.com, news.sina.com.cn or news.qq.com

date: the creation time of news, 20150529

contents:

link: the link of news

title: the title of news

passage: the content of news

The title and passage are encode as unicode, so you need transform it when load it.

##Other: save2xml.py is used to changing the json to xml type.

The xml file can be tagged by TemporaliaChTagger.

###Reference news-combinator

newscrawler's People

Contributors

tankle avatar

Watchers

 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.