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%)
- Host: GitHub
- URL: https://github.com/parassharmaa/newsme
- Owner: Parassharmaa
- License: mit
- Created: 2017-01-03T12:23:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-30T14:59:11.000Z (about 9 years ago)
- Last Synced: 2025-12-25T16:18:14.124Z (6 months ago)
- Topics: headline, news, python-3, scraping
- Language: Python
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: newsme/__init__.py
- License: LICENSE.txt
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.