Skip to content

Commit

Permalink
Refactored session management system to handle cookie and crumbs better.
Browse files Browse the repository at this point in the history
Added fixes for #167, #166, #160.
  • Loading branch information
connorsanders committed Dec 13, 2023
1 parent d0868d3 commit 766c4bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yahoofinancials/etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def _request_handler(self, url, res_field=""):
open_session = False
session, crumb = _init_session(None, proxies=self._get_proxy(), timeout=self.timeout)
crumb_url = cur_url + "&crumb=" + str(crumb)
response = urlopener.get_data(crumb_url, proxy=self._get_proxy(), timeout=self.timeout)
response = urlopener.get_data(session, crumb_url, proxy=self._get_proxy(), timeout=self.timeout)
else:
response = urlopener.open(cur_url, proxy=self._get_proxy(), timeout=self.timeout)
if response.status_code == 401:
Expand Down

0 comments on commit 766c4bb

Please sign in to comment.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy