Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookie and session use #4

Open
temi4 opened this issue Mar 26, 2024 · 1 comment
Open

Cookie and session use #4

temi4 opened this issue Mar 26, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@temi4
Copy link

temi4 commented Mar 26, 2024

Hello. May be you have example: how to use session as analog requests.Session?

@ihandmine
Copy link
Owner

ihandmine commented Apr 1, 2024

If you want to use session mode to initiate a request, only aiohttp requests are supported. You only need to configure:
REQUESTS_SESSION_STATS = True
If you want to use cookie, you can use it in the download middleware:
downloadmiddleware.py
request.cookies = {}

@ihandmine ihandmine added the documentation Improvements or additions to documentation label Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants