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

Always share attributes with underlying session instance #266

Merged
merged 1 commit into from
Nov 7, 2021
Merged

Always share attributes with underlying session instance #266

merged 1 commit into from
Nov 7, 2021

Conversation

TAAPArthur
Copy link
Contributor

When an existing session instance was passed into create_scraper,
interesting attributes were copied if they were truthy. However, this
excluded copying attributes of mutable data types that were falsey at
the time. For example, if the cookie jar of the original session was
empty, then cloudscraper wouldn't use the same jar as the original
session and cookies would get out of sync between the two.

Now all interesting attributes are synced given they aren't None.

When an existing session instance was passed into create_scraper,
interesting attributes were copied if they were truthy. However, this
excluded copying attributes of mutable data types that were falsey at
the time. For example, if the cookie jar of the original session was
empty, then cloudscraper wouldn't use the same jar as the original
session and cookies would get out of sync between the two.

Now all interesting attributes are synced given they aren't None.
@TAAPArthur TAAPArthur changed the base branch from master to dev November 7, 2021 07:23
@VeNoMouS VeNoMouS merged commit d53fd25 into VeNoMouS:dev Nov 7, 2021
@TAAPArthur TAAPArthur deleted the share_attributes branch November 7, 2021 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants