itJunky / city_news_parser_for_tg

Just for fun project to forwarding any news from google about your city

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

city_news_parser_for_tg

Just for fun project to forwarding any news from google about your city

Parse any news by string at last hour in google every minute.

Installation

Before start the bot you need create a config.py file with content like this:

token = 'xxxxxxxxxxxxxxxxxxxxxxx'
chat_ids = [-12345678]
dork = 'moscow'
timeshift = 's90'
durl = 'https://www.google.com/search?q={}&tbs=qdr:{}&tbo=1&tbm=nws'.format(dork, timeshift)

In crontab set something like this:

* * * * * /path/to/python3 /path/to/cronjob.py

About

Just for fun project to forwarding any news from google about your city

License:GNU General Public License v3.0


Languages

Language:Python 100.0%