Skip to content

Python Script to scrap the news headlines from news-websites. (Accuracy 88%)

License

Notifications You must be signed in to change notification settings

Parassharmaa/NewsME

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Python Script to scrap the news headlines from news-websites. (Accuracy 88%)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages