簡體   English   中英

Python:請求中的 URL 超出了最大重試次數

[英]Python: Max retries exceeded with URL in requests

我正在嘗試使用來自 St. Louis FRED 的 pdr 下載數據。

fred = pdr.DataReader(['GS10', 'INDPRO'], 'fred', '2000', '2019')
fred

但是,我收到以下錯誤。 有誰知道如何解決這一問題?

ConnectionError: HTTPSConnectionPool(host='fred.stlouisfed.org', port=443): Max retries exceeded with url: /graph/fredgraph.csv?id=GS10 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002328B189520>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))

你能解釋一下上下文嗎? 給我們你運行的代碼的一部分。 有了這個,也許我可以幫助你。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM