OpenBB-finance / OpenBB

Investment Research for Everyone, Everywhere.
https://openbb.co
Other
34.14k stars 3.13k forks source link

[Bug] Stocks/BA/popular - InsecureRequestWarning: Unverified HTTPS request is being made to host 'finviz.com'. Adding certificate verification is strongly advised. #3596

Closed deeleeramone closed 1 year ago

deeleeramone commented 2 years ago

Finviz? I thought I was asking Reddit for data.

jmaslek commented 2 years ago

Finviz is used to confirm that the matched symbols are in facts stock tickers (we do an almost 'fuzzy' match where we look for 3-4 letter combos instead of checking against a fixed list of tickers) .

Gives us this info:

                                          The following TOP 10 tickers have been mentioned                                          
┏━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Mentions ┃ Ticker ┃ Company            ┃ Sector               ┃ Price  ┃ Change ┃ Perf Month ┃ URL                               ┃
┡━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ 37       │ GME    │ GameStop Corp.     │ Consumer Cyclical    │ 26.17  │ -1.99% │ 2.95%      │ https://finviz.com/quote.ashx?t=… │
├──────────┼────────┼────────────────────┼──────────────────────┼────────┼────────┼────────────┼───────────────────────────────────┤
│ 9        │ SPY    │ Financial          │ Exchange Traded Fund │ 402.38 │ -0.01% │ 5.33%      │ https://finviz.com/quote.ashx?t=… │
├──────────┼────────┼────────────────────┼──────────────────────┼────────┼────────┼────────────┼───────────────────────────────────┤
│ 6        │ CPI    │ Financial          │ Exchange Traded Fund │ 25.26  │ 0.18%  │ 2.06%      │ https://finviz.com/quote.ashx?t=… │
├──────────┼────────┼────────────────────┼──────────────────────┼────────┼────────┼────────────┼───────────────────────────────────┤
│ 5        │ VTI    │ Financial          │ Exchange Traded Fund │ 201.54 │ 0.07%  │ 5.11%      │ https://finviz.com/quote.ashx?t=… │
├──────────┼────────┼────────────────────┼──────────────────────┼────────┼────────┼────────────┼───────────────────────────────────┤
│ 5        │ MELI   │ MercadoLibre, Inc. │ Consumer Cyclical    │ 951.57 │ -1.13% │ 14.18%     │ https://finviz.com/quote.ashx?t=… │
└──────────┴────────┴────────────────────┴──────────────────────┴────────┴────────┴────────────┴───────────────────────────────────┘
jmaslek commented 2 years ago

While I do not get this error, I get the following:

2022 Nov 26, 20:31 (🦋) /stocks/ba/ $ popular

Searching for latest tickers for 50 'Superstonk' posts
  88 potential tickers found.
Searching for latest tickers for 50 'pennystocks' posts
  42 potential tickers found.
Searching for latest tickers for 50 'RobinHoodPennyStocks' posts
  36 potential tickers found.
Searching for latest tickers for 50 'Daytrading' posts
  94 potential tickers found.
Searching for latest tickers for 50 'StockMarket' posts
  32 potential tickers found.
Searching for latest tickers for 50 'stocks' posts
  137 potential tickers found.
Searching for latest tickers for 50 'investing' posts
  116 potential tickers found.
Searching for latest tickers for 50 'wallstreetbets' posts
  38 potential tickers found.
Unexpected exception from Finviz: 429 Client Error: Too Many Requests for url: https://finviz.com/quote.ashx?t=IOU
Unexpected exception from Finviz: 429 Client Error: Too Many Requests for url: https://finviz.com/quote.ashx?t=SPX

And that enexpected exception occurs about 100 times