-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
28 lines (26 loc) · 805 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Main Method for B2
# Author: Ryan Shen and Alex Zhu
# Last Updated: Jan 7, 2023
import config
from GoogleScraper.googlescraper import *
from GoogleScraper.tickerparser import *
from StockPicker.configexporter import *
from StockPicker.portfolioPicker import *
from NYTScraper.mainNYT import *
from NYTScraper.cohereSentiment import *
from Backtester.mainBacktester import *
# Should be run in this order: generate tickers, generate search scores, generate article text,
# generate nytscores, sum score, pick stocks, print portfolio, backtest
def main():
print("running")
generateTickersByYear(2008)
generateSearchScores()
graph()
generateArticleText()
generateNYTScores()
sumScore()
pickStocks()
printPortfolio()
backtest()
if __name__ == "__main__":
main()