richardpenman / browsercookie

GNU Lesser General Public License v2.1
112 stars 27 forks source link

Cannot find no one of cookies #14

Open ksielyov opened 2 years ago

ksielyov commented 2 years ago

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 commented 6 months ago

To help debug this could you provide:

mdavranche commented 5 months ago

Must be linked to https://github.com/richardpenman/browsercookie/pull/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.