Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

mrbhanukab/mrstock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mr. Stock

This is a Python script that uses web scraping to fetch stock prices from MarketWatch and sends the latest updates via Telegram.

Requirements

  • Python 3.7+
  • requests module
  • beautifulsoup4 module
  • python-telegram-bot module

Installation

  1. Clone this repository:
git clone https://github.com/mrbhanukab/mrstock.git
  1. Install the required modules:
pip install -r requirements.txt
  1. Create a new Telegram bot and obtain its API token. Refer to the official Telegram Bot documentation for instructions.

  2. Replace the TOKEN variable in the main.py file with your own Telegram bot API token.

  3. Run the script:

python main.py

How to get your Telegram chat ID

To get your Telegram chat ID, you can use the Telegram User Info Bot:

  1. Add the Telegram User Info Bot (@userinfobot) to your Telegram contacts.
  2. Start a chat with the bot and send any message.
  3. The bot will reply with your chat ID, which you can use in the chat_id variable in the Python script.

Note that you should replace the chat_id variable in the send_message() function in the main.py script with your own chat ID obtained from the Telegram User Info Bot.

website
github
twitter

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages