{"id":15471431,"url":"https://github.com/aisk/browsercookies","last_synced_at":"2025-10-06T14:11:20.511Z","repository":{"id":34686083,"uuid":"151712442","full_name":"aisk/browsercookies","owner":"aisk","description":"Loads cookies from your browsers","archived":false,"fork":false,"pushed_at":"2024-11-13T01:36:33.000Z","size":53,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-01T10:13:46.882Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aisk.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-05T11:42:33.000Z","updated_at":"2024-12-25T22:37:33.000Z","dependencies_parsed_at":"2022-08-28T11:11:26.324Z","dependency_job_id":"a60f8a98-5db6-41c3-af7f-41763c05fe54","html_url":"https://github.com/aisk/browsercookies","commit_stats":{"total_commits":69,"total_committers":4,"mean_commits":17.25,"dds":"0.49275362318840576","last_synced_commit":"b0bc235550906c9001941dfec85020bda52bc44c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Fbrowsercookies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Fbrowsercookies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Fbrowsercookies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Fbrowsercookies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aisk","download_url":"https://codeload.github.com/aisk/browsercookies/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251857020,"owners_count":21655121,"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":[],"created_at":"2024-10-02T02:19:42.324Z","updated_at":"2025-10-06T14:11:15.474Z","avatar_url":"https://github.com/aisk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# browsercookies\n\n[![GoDoc](https://godoc.org/github.com/aisk/browsercookies?status.svg)](https://godoc.org/github.com/aisk/browsercookies)\n[![Go Report Card](https://goreportcard.com/badge/github.com/aisk/browsercookies)](https://goreportcard.com/report/github.com/aisk/browsercookies)\n[![Maintainability](https://api.codeclimate.com/v1/badges/ad3073a115dfe893f2b8/maintainability)](https://codeclimate.com/github/aisk/browsercookies/maintainability)\n\nMake HTTP requests with cookies from your browsers!\n\n![cookie jar](https://www.kitchenistic.com/media/2019/08/best-cookie-jars.jpg)\n\n*This is a Go port of richardpenman's [browsercookie](https://bitbucket.org/richardpenman/browsercookie).*\n\n---\n\n## Supported browsers:\n\n- [x] FireFox\n- [ ] Chrome\n\n## Example:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"net/http\"\n\t\"regexp\"\n\n\t\"github.com/aisk/browsercookies\"\n)\n\nfunc main() {\n\tjar, err := browsercookies.LoadFireFox()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\thttpclient := http.Client{Jar: jar}\n\tresp, err := httpclient.Get(\"https://github.com/settings/profile\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tbody, err := ioutil.ReadAll(resp.Body)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tre := regexp.MustCompile(`\u003cmeta name=\"user-login\" content=\"(\\w*?)\"\u003e`)\n\tfmt.Println(re.FindAllStringSubmatch(string(body), -1)[0][1]) // =\u003e aisk\n}\n```\n\n## License:\n\nLGPL\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faisk%2Fbrowsercookies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faisk%2Fbrowsercookies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faisk%2Fbrowsercookies/lists"}