Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.37 KB

readme.md

File metadata and controls

34 lines (27 loc) · 1.37 KB

News Parser

This tool allows you to log the main titles of news sites in Israel.

The implementation is based on bs4.

Installation

This tool is based on Python version 3.5 and above.

to use the tool install the requirements file with pip in the following way:

pip install -r requirements.txt 

Usage

for basic usage you can use news_parser.py as an command line tool. for example, if you'll want to scrap the titles of ynet every 60 seconds you could use:

python news_parser.py ynet 60

Note: Please don't use any time that is less than 60 seconds or it might being consider as an attack by the news site.

Available modes

  1. ynet - logs ynet
  2. walla - logs וואלה!NEWS
  3. haaretz - logs הארץ
  4. kikar - logs כיכר השבת

Legal notes

This tool is considered a web scraper, please use it in an ethical way AND according to the Israeli law

I'm not responsible for any misusing of that tool.