onlyππallowedππ
https://kennydataml.github.io/wallstreetbets/
.
βββ wsb # main scripts
| βββ moneyprinter.py # print tendies
| βββ models.py # data models kinda
| βββ base.py # super classes
| βββ credentials.json # Reddit app client. Ask admin for access to the app client.
βββ tests # Unit and integration tests
βββ tools
| βββ refresh_token.py # manual tool to generate refresh token
| βββ rewrite_pretty_json.py # rewrite json with proper indent. use if json prints in single line.
βββ LICENSE
βββ README.md
python moneyprinter.py -h
usage: moneyprinter.py [-h] [-c CREDENTIALS]
[-t {all,day,hour,month,week,year}] [-l LIMIT]
[-o OUTPUT] [-st] [-d] [-dd]
Money Printer Go BRRRRRRR
optional arguments:
-h, --help show this help message and exit
-c CREDENTIALS, --credentials CREDENTIALS
Credentials file. Default is ./credentials.json
-t {all,day,hour,month,week,year}, --timefilter {all,day,hour,month,week,year}
Choose time filter for Reddit search query. Only used
for top and search methods. Default is day
-l LIMIT, --limit LIMIT
Number of posts returned from Reddit search query. If
limit is None, then fetch as many entries as possible.
Most of redditβs listings contain a maximum of 1000
items, and are returned 100 at a time. Default is None
-o OUTPUT, --output OUTPUT
output folder for model. Default is ../output
-st, --stockticker Stock Ticker search. Default is False
-d, --dailydiscussion
Daily Discussion flair. Default is False
-dd, --duediligence Due Diligence flair. Default is False
pip install virtualenvwrapper
(optional)
Windows is virtualenvwrapper-win
- if using Linux, refer to
venvsetup.sh
- command shortlist (docs):
# create a venv
mkvirtualenv <venv name>
# use the venv
workon <venv name>
# add a path to the venv's Python path. useful for testing
add2virtualenv <path>
Inside your venv, pip install -r requirements.txt
Register for Reddit API and create OAuth2 creds.
NOTE: There is an existing Reddit app available, but feel free to create your own and replace the info in credentials.json
Use PRAW to extract from Reddit (docs)
nyse-listed.csv downloaded from here
nasdaq-list.csv downloaded from here
python-highchart has javascript reference problems. requirements.txt has a fixed version.
We are using Altair now! π
to the moon babyyyyyyy πππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππππ