/home/robert/PycharmProjects/get_prospects/env/bin/python /home/robert/PycharmProjects/get_prospects/Main/script/test_fetch_yahoo_hang.py 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] yfinance version: 0.2.31 Grainger plc GRI.L DEBUG Entering history() DEBUG GRI.L: Yahoo GET parameters: {'range': '1mo', 'interval': '1h', 'includePrePost': False, 'events': 'div,splits,capitalGains'} DEBUG Entering get() DEBUG url=https://query2.finance.yahoo.com/v8/finance/chart/GRI.L DEBUG params={'range': '1mo', 'interval': '1h', 'includePrePost': False, 'events': 'div,splits,capitalGains'} DEBUG Entering _get_cookie_and_crumb() DEBUG cookie_mode = 'basic' DEBUG Entering _get_cookie_and_crumb_basic() DEBUG Entering _get_cookie_basic() DEBUG Entering _load_cookie_basic() DEBUG loaded persistent cookie DEBUG Exiting _load_cookie_basic() DEBUG Exiting _get_cookie_basic() DEBUG Entering _get_crumb_basic() DEBUG Entering _get_cookie_basic() DEBUG reusing cookie DEBUG Exiting _get_cookie_basic() DEBUG crumb = 'Km9kZXTBTKE' DEBUG Exiting _get_crumb_basic() DEBUG Exiting _get_cookie_and_crumb_basic() DEBUG Exiting _get_cookie_and_crumb() DEBUG Exiting get() DEBUG GRI.L: yfinance received OHLC data: 2023-10-11 07:00:00 -> 2023-11-10 16:30:00 DEBUG GRI.L: OHLC after cleaning: 2023-10-11 08:00:00+01:00 -> 2023-11-10 16:00:00+00:00 DEBUG GRI.L: OHLC after combining events: 2023-10-11 08:00:00+01:00 -> 2023-11-10 16:00:00+00:00 DEBUG GRI.L: yfinance returning OHLC: 2023-10-11 08:00:00+01:00 -> 2023-11-10 16:00:00+00:00 DEBUG Exiting history() Open High ... Dividends Stock Splits Datetime ... 2023-10-11 07:00:00+00:00 238.80 239.6 ... 0.0 0.0 2023-10-11 08:00:00+00:00 238.87 239.6 ... 0.0 0.0 2023-10-11 09:00:00+00:00 238.50 239.4 ... 0.0 0.0 [3 rows x 7 columns] loop GRI.L Pets at home plc PETS.L DEBUG Entering history() DEBUG PETS.L: Yahoo GET parameters: {'range': '1mo', 'interval': '1h', 'includePrePost': False, 'events': 'div,splits,capitalGains'} DEBUG Entering get() DEBUG url=https://query2.finance.yahoo.com/v8/finance/chart/PETS.L DEBUG params={'range': '1mo', 'interval': '1h', 'includePrePost': False, 'events': 'div,splits,capitalGains'} DEBUG Entering _get_cookie_and_crumb() DEBUG cookie_mode = 'basic' DEBUG Entering _get_cookie_and_crumb_basic() DEBUG Entering _get_cookie_basic() DEBUG reusing cookie DEBUG Exiting _get_cookie_basic() DEBUG Entering _get_crumb_basic() DEBUG reusing crumb DEBUG Exiting _get_crumb_basic() DEBUG Exiting _get_cookie_and_crumb_basic() DEBUG Exiting _get_cookie_and_crumb() DEBUG Exiting get() DEBUG PETS.L: yfinance received OHLC data: 2023-10-11 07:00:00 -> 2023-11-10 16:30:00 DEBUG PETS.L: OHLC after cleaning: 2023-10-11 08:00:00+01:00 -> 2023-11-10 16:00:00+00:00 DEBUG PETS.L: OHLC after combining events: 2023-10-11 08:00:00+01:00 -> 2023-11-10 16:00:00+00:00 DEBUG PETS.L: yfinance returning OHLC: 2023-10-11 08:00:00+01:00 -> 2023-11-10 16:00:00+00:00 DEBUG Exiting history() Open High ... Dividends Stock Splits Datetime ... 2023-10-11 07:00:00+00:00 325.6 332.74 ... 0.0 0.0 2023-10-11 08:00:00+00:00 324.6 324.60 ... 0.0 0.0 2023-10-11 09:00:00+00:00 324.2 324.60 ... 0.0 0.0 [3 rows x 7 columns] loop PETS.L xxx National Express xxx NEX.L DEBUG Entering history() DEBUG Entering _fetch_ticker_tz() DEBUG Entering get() DEBUG url=https://query2.finance.yahoo.com/v8/finance/chart/NEX.L DEBUG params=frozendict.frozendict({'range': '1d', 'interval': '1d'}) DEBUG Entering _get_cookie_and_crumb() DEBUG cookie_mode = 'basic' DEBUG Entering _get_cookie_and_crumb_basic() DEBUG Entering _get_cookie_basic() DEBUG reusing cookie DEBUG Exiting _get_cookie_basic() DEBUG Entering _get_crumb_basic() DEBUG reusing crumb DEBUG Exiting _get_crumb_basic() DEBUG Exiting _get_cookie_and_crumb_basic() DEBUG Exiting _get_cookie_and_crumb() DEBUG toggling cookie strategy basic -> csrf DEBUG Entering _get_cookie_and_crumb() DEBUG cookie_mode = 'csrf' DEBUG Entering _get_crumb_csrf() DEBUG Entering _get_cookie_csrf() DEBUG Entering _load_session_cookies() DEBUG Exiting _load_session_cookies() DEBUG csrfToken = eCfbRkqdEld4JxRRBgwI0eIRJfETihre DEBUG sessionId='3_cc-session_286966a3-49b2-4ea6-ba97-a51b9675534b DEBUG Entering _save_session_cookies() DEBUG Exiting _save_session_cookies() DEBUG Exiting _get_cookie_csrf() DEBUG Exiting _get_crumb_csrf() DEBUG toggling cookie strategy csrf -> basic ERROR Failed to get ticker 'NEX.L' reason: module 'requests.cookies' has no attribute 'clear' DEBUG Exiting _fetch_ticker_tz() DEBUG Entering history() DEBUG GRI.L: Yahoo GET parameters: {'range': '1mo', 'interval': '1h', 'includePrePost': False, 'events': 'div,splits,capitalGains'} DEBUG Entering get() DEBUG url=https://query2.finance.yahoo.com/v8/finance/chart/GRI.L DEBUG params={'range': '1mo', 'interval': '1h', 'includePrePost': False, 'events': 'div,splits,capitalGains'} DEBUG Entering _get_cookie_and_crumb() DEBUG cookie_mode = 'basic' DEBUG Entering _get_cookie_and_crumb_basic() DEBUG Entering _get_cookie_basic() DEBUG reusing cookie DEBUG Exiting _get_cookie_basic() DEBUG Entering _get_crumb_basic() DEBUG reusing crumb DEBUG Exiting _get_crumb_basic() DEBUG Exiting _get_cookie_and_crumb_basic() DEBUG Exiting _get_cookie_and_crumb() DEBUG Entering history() DEBUG BLND.L: Yahoo GET parameters: {'range': '1mo', 'interval': '1h', 'includePrePost': False, 'events': 'div,splits,capitalGains'} DEBUG Entering get() DEBUG url=https://query2.finance.yahoo.com/v8/finance/chart/BLND.L DEBUG params={'range': '1mo', 'interval': '1h', 'includePrePost': False, 'events': 'div,splits,capitalGains'} DEBUG Entering _get_cookie_and_crumb() DEBUG cookie_mode = 'basic' DEBUG Entering _get_cookie_and_crumb_basic() DEBUG Entering _get_cookie_basic() DEBUG reusing cookie DEBUG Exiting _get_cookie_basic() DEBUG Entering _get_crumb_basic() DEBUG reusing crumb DEBUG Exiting _get_crumb_basic() DEBUG Exiting _get_cookie_and_crumb_basic() DEBUG Exiting _get_cookie_and_crumb() loop NEX.L Grainger plc GRI.L loop GRI.L British Land Company PLC BLND.L loop BLND.L finished Process finished with exit code 0