0.0
No commit activity in last 3 years
No release in over 3 years
Automatically give you the titles of latest news.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 1.6.2
 Project Readme

The-Newslens_HW - A RSS reader by ourselves

Authors : LinAnita, peyruchao(peggy) and ethancychen

The website: The News Lens ( http://www.thenewslens.com )

This website is a platform to provide different and multiple points of the news or some accidents. It can let users to discuss the news and make comments.

What do we want to scrape?

The title, author and lauched time of the news in NewsLens.com's main page.

###Usage

In command line just type in ruby newsdigests.rb and our program will put out a new file(test.txt) in the directory. The file shows the titles, author and lauched time of the news in NewsLens.com's main page. No parameters is needed. For example, if we type ruby newsdigests.rb in command line, it will produce a file call "test.txt". The outcome of the file will be look like this:

 

title: 習近平點名批評央視「大褲衩」,北京此後不再興建奇怪建築 author: KaChun date: 2014-10-18

title: 教師的多元發聲:第二個全國教師工會「全教產」成立 author: TNL 編輯 date: 2014-10-18

Install it with the following command: gem install thenewslensapi

Then in your file: require "thenewslensapi"