Skip to content

Commit

Permalink
Use new session setup, crumb retrieval pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
dpguthrie committed Dec 8, 2023
1 parent fba8595 commit e321af3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yahooquery/misc.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# third party
import pandas as pd

from .utils import get_crumb, initialize_session
from .utils import get_crumb, initialize_session, setup_session
from .utils.countries import COUNTRIES

BASE_URL = "https://query2.finance.yahoo.com"
Expand All @@ -21,6 +21,7 @@ def _make_request(
)
)
session = initialize_session(**kwargs)
session = setup_session(session)
crumb = get_crumb(session)
if crumb is not None:
params["crumb"] = crumb
Expand Down

0 comments on commit e321af3

Please sign in to comment.