An open API service indexing awesome lists of open source software.

https://github.com/parassharmaa/newsme

Python Script to scrap the news headlines from news-websites. (Accuracy 88%)
https://github.com/parassharmaa/newsme

headline news python-3 scraping

Last synced: 11 days ago
JSON representation

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

Awesome Lists containing this project

README

          

# NewsME
## A Headline-Scrapper

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

***
### Usage::
1.Importing
```python

from newsme.nm import NewsMe

```

2.Get Beutified HTML
```python

url = "http://timesofindia.com"

N = NewsMe(url)

print(N.html())

```

3.Get headlines with urls:
```python

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

```

4.Change the order to fetch more accurate headlines data
```python

N = NewsMe(url, order=3)

```
***
### External Dependencies:

* beautifulsoup4
* urllib

***
### Contribute
New Features and Contributions are accepted.