Code for sending news emails daily and a web app that lets users:
- View daily curated news (Email/Web)
- Track real-time precious metal prices (Gold, Silver, Platinum, Palladium) (Web)
- Monitor live stock market prices using stock symbols (via Alpha Vantage) (Web)
This tool was made due to difficulties I faced in getting daily news in my university.
- Live updates for Gold, Silver, Platinum & Palladium (in USD/oz)
- Smart tracking for multiple stock symbols
- Real-time price change indicators
- Financial news with summaries and source links
-
Clone this repo git clone https://github.com/your-username/metal-stock-news-tracker.git
cd metal-stock-news-tracker
-
Install Python dependencies pip install -r requirements.txt
-
Add your API keys 1.Create a conjig.js file with contents: const CONFIG = { ALPHA_VANTAGE_API_KEY: "Your_alpha_vantage_API_KEY", METALS_API_KEY: "Your_Metals_API_KEY"
};2.Create a .env file with: EMAIL_USER=[email protected] EMAIL_PASS=your_app_password
Note: The password is not same as your Gmail password Enable 2-Step Verification on your Google account: https://myaccount.google.com/security Generate an App Password here: https://myaccount.google.com/apppasswords
- Give the list of gmail of receivers as a string in the email_sender.py file
-
Usage Instructions Run the following files in order every day or automate it (using task scheduler in windows / cron jobs in mac or linux) 1.Move inside the scrappyfile directory 2.Run this command in terminal : scrapy crawl news_spider 3.Run email_sender.py to send email to the list of receivers -- To send email 4.Run dashboard_newsfeeder.py to feed news to the html file -- To view dashboard
-
View your personalised dashboard Your dashboard will be ready to be viewed!
The HTML Dashboard here was not created by me. The original aim of this project was to send an daily email to all users regarding daily news. I just wanted to see how this can be implemented in a dashboard hence the dashboard was just an extra idea which popped up.
This project is licensed under the Apache-2.0 License.
Vikashh Adaikalavan K
Gmail: [email protected]