Madhurireddy1 / Automate-Whatsapp-News

Webscrape a News Site, like Hacker News for articles I may be interested in, and send them to me through Whatsapp.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Whatsapp News Reporter

Python 3.7 GitHub repo size GitHub stars

With the rapid pace of innovation in the tech industry, it can be difficult for tech professionals, programmers, and Developers to keep their skills current. That being said, reading technology news and blogs every day is one of the best ways to keep up to date on the latest trends and skills needed in tech.

Study for Finals

Finding a few good articles, or blogs to read that are relevant to your area of expertise to follow can sometimes be daunting, not to talk of the time spent scrolling through a plethora of articles that don't interest you.

alert

I decided to automate the process of searching for current information in the tech industry that might be coming done the road; by scraping a website (eg.Hacker News) for any article I might be interested in, store the title of articles with their links into a database, and finally send them to me on whatsapp.

Pre-requisites

Before you begin, ensure you have met the following requirements:

  • A virtualenv python3 -m venv </path/to/new/virtual/environment>

  • You have the version of modules in the requirements.txt file. requirements.txt installed in the virtualenv

Or, if not ...

  • cd to the directory where requirements.txt is located
  • activate your virtualenv

On Windows, run: </path/to/virtual/environment>\Scripts\activate.bat

On Unix or MacOS, run: source </path/to/virtual/environment>/bin/activate

  • run: pip install -r requirements.txt in your shell

Description

news_bot.py Webscrape and clean markup data from Hacker News site to get relevant articles. Right after cleaning markup, it sends result to my Whatsapp number using Twilio sandbox.

main_db.py Basically creates a connection to SQLite database, creates a Table, insert rows into the Table and store results from news_bot.py into Database.

clock_bot.py schedules when a function needs to be run

The logs folder contains a file named news_bot.log which has logs of whatever that happens in the program

Using Automate Whatsapp News

python3 clock_bot.py

You can decide to host the code on heroku

Contributors

Contact

If you want to contact me you can reach me at

About

Webscrape a News Site, like Hacker News for articles I may be interested in, and send them to me through Whatsapp.

License:MIT License


Languages

Language:Python 100.0%