atreadw1492 / yahoo_fin

Scrape stock price history from new (Spring 2017) Yahoo Finance layout
MIT License
286 stars 125 forks source link

ConnectionRefusedError: [Errno 61] Connection refused #38

Closed Jonathanpou closed 3 years ago

Jonathanpou commented 3 years ago

ConnectionRefusedError: [Errno 61] Connection refused

urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fe84e2d5220>: Failed to establish a new connection: [Errno 61] Connection refused

urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='query1.finance.yahoo.com', port=443): Max retries exceeded with url: /v8/finance/chart/PLUG?period1=7223400&period2=1616430229&interval=1d&events=div%2Csplits (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fe84e2d5220>: Failed to establish a new connection: [Errno 61] Connection refused'))

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='query1.finance.yahoo.com', port=443): Max retries exceeded with url: /v8/finance/chart/PLUG?period1=7223400&period2=1616430229&interval=1d&events=div%2Csplits (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fe84e2d5220>: Failed to establish a new connection: [Errno 61] Connection refused'))

Why do I keep getting thees four errors when trying to get live price for a stock?

Jonathanpou commented 3 years ago

Closed due to me figuring out what was wrong