Skip to content

beast989898/Web-Scraper-for-Stock-Market-News

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Scraper for Stock Market News

Receive emails when a stock market press release contains specific keywords or matches a regular expression!

Disclaimer

This project is not financial advice.

The content and code in this repository, including any prewritten regular expressions related to stocks, are provided for educational and demonstrative purposes only. The use of this project should not be considered as financial, investment, or trading advice. Please conduct thorough research before making any investment decisions.

The author of this project is not responsible for any financial losses or other consequences resulting from the use of this software.

Table of Contents

Introduction

This script will visit GlobeNewswire, Business Wire, ACCESSWIRE, and PR Newswire. It will search recent press releases and find any articles that match keywords or keyphrases specified by the user. All relevant articles will be sent to your email address.

Getting Started

Download main.py, regex_filters.py, and filter_phrases.py. Place them in the same directory.

Prerequisites

The script requires both the Selenium and Regex libraries. Install with the following commands:

pip install selenium
pip install regex

Installation

  • Firefox browser is required for this project.
  • You will need to download Geckodriver (select according to your operating system).
  • Optionally, you may add uBlock Origin. Open the link in a non Firefox browser, and click on "Download file".

Download the xpi file

  • To send emails, you will need to setup a gmail account using app passwords. See this link for instructions.
  • Fill in some informations for the emails, as specified in the comments.
  • Some paths need to be manually entered, please check comments to see where.

License

This project is licensed under the GPL v3 license - see the full text here.

Acknowledgments

Thank you to the developers and contributors of the following libraries, frameworks, and tools that were used in this project:

  • Selenium: The engine behind the web scraping tasks.
  • Regex: Employed for pattern matching.
  • Firefox: Used as part of the Selenium testing environment.
  • Geckodriver: Used in unison with Firefox and Selenium.
  • uBlock Origin: Incorporated for content filtering.

About

A web scraping script to find stock market press releases matching predefined keywords.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages