Giter VIP home page Giter VIP logo

people_newspaper_scratch's Introduction

人民日报抓取程序使用方法:
1.修改config.php,给出一个人民日报的开始url,然后抓取从开始url的那个日期一直到今日的所有人民日报内容。
在命令行里运行
php people_newspaper.php
来获得抓取结果。
未登录状态下,只有当天的所有版面能够抓完。
抓取结果存储在data目录下,按“年/月”建立目录结构。一天为一个文件。

2.使用ClusterFile.java程序将data目录下的所有文件合并到一个文件combined.txt里,文件名在java源代码里修改。如果希望保留html标签,去掉clear_html()函数。

PSIKYO
16th,Oct,2016

people_newspaper_scratch's People

Watchers

James Cloos 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.