{"id":21865666,"url":"https://github.com/arnie97/chrome-cookiejar","last_synced_at":"2025-04-14T21:05:45.355Z","repository":{"id":45589983,"uuid":"64410120","full_name":"Arnie97/chrome-cookiejar","owner":"Arnie97","description":"Import your Chrome cookies to a Python CookieJar","archived":false,"fork":false,"pushed_at":"2021-12-06T22:41:37.000Z","size":17,"stargazers_count":19,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-14T21:28:44.194Z","etag":null,"topics":["chrome","chromium","cookie","web-scraping"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Arnie97.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-28T16:11:07.000Z","updated_at":"2024-05-03T06:43:18.000Z","dependencies_parsed_at":"2022-08-12T11:52:25.754Z","dependency_job_id":null,"html_url":"https://github.com/Arnie97/chrome-cookiejar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnie97%2Fchrome-cookiejar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnie97%2Fchrome-cookiejar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnie97%2Fchrome-cookiejar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnie97%2Fchrome-cookiejar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arnie97","download_url":"https://codeload.github.com/Arnie97/chrome-cookiejar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226856866,"owners_count":17693016,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chrome","chromium","cookie","web-scraping"],"created_at":"2024-11-28T04:17:23.013Z","updated_at":"2024-11-28T04:17:23.429Z","avatar_url":"https://github.com/Arnie97.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chrome Cookiejar\nThis module helps to utilize your Chrome cookies in Python scripts.\nIt's especially useful when scraping sites that requires login,\nas you can test your ideas easily without solving the CAPTCHAs and emulating the whole login process.\n\n## Supported platforms\nThis package is only tested on Python 3.\n\nPlease also note that values of cookies are encrypted with platform specific algorithms since Chrome 33.\nThe decrypt helper for Windows is already included; however, only older versions of Chrome is currently supported on macOS or Linux.\n\n## Get started\nUse the following code snippet to create an instance of `http.cookiejar.CookieJar` that includes all cookies from your Chrome browser:\n\n```python\n\u003e\u003e\u003e from chrome_cookiejar import ChromeCookieJar\n\u003e\u003e\u003e cookiejar = ChromeCookieJar('/path/of/your/Cookies')  # doctest: +SKIP\n\n```\n\nThe file path is optional; if omitted, the library will try to read cookies from the default user profile path of Chrom(ium).\nIf you're not sure, check `chrome://version` and follow the *Profile Path* shown here.\n\nAs the `Cookies` file is a SQLite database, you could filter the host domain with SQL wildcards:\n\n```python\n\u003e\u003e\u003e import requests, re\n\u003e\u003e\u003e jar = ChromeCookieJar(host_filter='%gith_b.com')\n\u003e\u003e\u003e login_user = re.compile(r'\u003cmeta name=\"user-login\" content=\"(.+?)\"\u003e')\n\u003e\u003e\u003e login_user.findall(requests.get('https://github.com', cookies=None).text)\n[]\n\u003e\u003e\u003e login_user.findall(requests.get('https://github.com', cookies=jar).text)\n['Arnie97']\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnie97%2Fchrome-cookiejar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnie97%2Fchrome-cookiejar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnie97%2Fchrome-cookiejar/lists"}