Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

ohsyln/topgainers-premarket-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

topgainers-premarket-scanner

a

Got sick of manually refreshing my free premarket scanners. This non-API web scraper pulls data from free (delayed) premarket scanner(s) for top gainers, further filtering them with custom parameters such as Change %, Last, Volume, Float.

Uses urllib (web request) and BeautifulSoup (HTML parsing).

Uses thestockmarketwatch.com (premarket scanner) and finance.yahoo.com (float info).

Prerequisites (MacOS/Linux)

Python3

Installing

Clone to your local directory:

git clone https://github.com/ohsyln/topgainers-premarket-scanner
cd topgainers-premarket-scanner

Activate py virtual environment:

source pyvenv/bin/activate

Run script

Edit parameters in scanner.py with a text editor:

PERIOD = 30 # seconds per refresh
GAINS_PERCENT = 10 # minimum change %
MAX_LAST = 50 # maximum price in dollars
FLOAT_BTW = [0,150000000] # size of public float
MIN_VOLUME = 100000 # minimum volume

Save changes and run script

python3 scanner.py

License

MIT

About

Auto-periodic topgainers premarket scanner

Topics

Resources

License

Stars

Watchers

Forks