Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 622 Bytes

README.md

File metadata and controls

48 lines (31 loc) · 622 Bytes

NewsME

A Headline-Scrapper

Python Script to scrap the news+urls headlines from news-websites.


Usage::

1.Importing

from newsme.nm import NewsMe

2.Get Beutified HTML

url = "http://timesofindia.com"

N = NewsMe(url)

print(N.html())

3.Get headlines with urls:

N.headlines()
#List of tuples containing (newsHeadline, url) is returned

4.Change the order to fetch more accurate headlines data

N = NewsMe(url, order=3)

External Dependencies:

  • beautifulsoup4
  • urllib

Contribute

New Features and Contributions are accepted.