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

Cannot find no one of cookies #14

Open
ksielyov opened this issue Apr 2, 2022 · 2 comments
Open

Cannot find no one of cookies #14

ksielyov opened this issue Apr 2, 2022 · 2 comments

Comments

@ksielyov
Copy link

ksielyov commented Apr 2, 2022


import browsercookie
import requests


class Cookies:
    def __init__(self):
        self.able_cookies = None
        self.chrome_cookies = None

    def cookies_to_value(self, url):
        cj = browsercookie.load()

        # cookie = [c.value for c in cj]

        self.able_cookies = requests.get(url, cookies=cj)

        return [i for i in cj]



# -*- coding: utf-8 -*-

from module.cookies import Cookies

cook = Cookies()
url = 'https://github.com'


def bootstrap():
    print(cook.cookies_to_value(url=url))


if __name__ == '__main__':
    bootstrap()
@richardpenman
Copy link
Owner

To help debug this could you provide:

  • your browser versions and path to cookie files
  • your OS version

@mdavranche
Copy link
Contributor

Must be linked to #20, especially because the message had been posted on 2022-04, the month when Ubuntu 22.04 (moving Firefox from packages to Snaps) had been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants