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

[Feature] Cookies.get_dict() #316

Open
JustRomanBZK opened this issue May 18, 2024 · 0 comments
Open

[Feature] Cookies.get_dict() #316

JustRomanBZK opened this issue May 18, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@JustRomanBZK
Copy link

JustRomanBZK commented May 18, 2024

Add function get_dict to Cookies

def get_dict(self, domain=None, path=None):
        dictionary = {}
        for cookie in self.jar:
            if (domain is None or cookie.domain == domain) and (
                path is None or cookie.path == path
            ):
                dictionary[cookie.name] = cookie.value
        return dictionary
@JustRomanBZK JustRomanBZK added the enhancement New feature or request label May 18, 2024
@JustRomanBZK JustRomanBZK changed the title [Feature] get_dict() [Feature] Cookies.get_dict() May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants