We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi there,
i want to scraps a board with different users.
i create a subclass from Request but class Test(scrapy.Request): def __init__(self, *args, **kwargs): super(Test, self).__init__(*args, **kwargs)
class Test(scrapy.Request): def __init__(self, *args, **kwargs): super(Test, self).__init__(*args, **kwargs)
But i didnt get new instance from Request Object, so there i always got same cookies etc.
Can anybody help me please
The text was updated successfully, but these errors were encountered:
@gdomod , by default, CookieMiddleware will share the same session for all requests.
CookieMiddleware
If you want to emulate parallel (cookie) sessions, check the cookiejar key in meta dict that you can pass to Request instances.
cookiejar
meta
Request
Note the comment on passing the cookiejar key explicitly in subsequent requests:
Keep in mind that the cookiejar meta key is not “sticky”. You need to keep passing it along on subsequent requests.
Sorry, something went wrong.
I agree that cookies API can be confusing; it can be improved. If you have ideas feel free to weight in at #1878.
But this feature works as intended, so I'm closing this ticket.
No branches or pull requests
Hi there,
i want to scraps a board with different users.
i create a subclass from Request but
class Test(scrapy.Request): def __init__(self, *args, **kwargs): super(Test, self).__init__(*args, **kwargs)
But i didnt get new instance from Request Object, so there i always got same cookies etc.
Can anybody help me please
The text was updated successfully, but these errors were encountered: