{"id":16544154,"url":"https://github.com/cs01/you-might-not-need-requests","last_synced_at":"2026-03-08T06:32:01.877Z","repository":{"id":66144162,"uuid":"185230747","full_name":"cs01/you-might-not-need-requests","owner":"cs01","description":"alternative ways to make http requests in Python without the requests package","archived":false,"fork":false,"pushed_at":"2019-05-06T16:16:12.000Z","size":0,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T09:43:06.321Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cs01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-05-06T16:12:12.000Z","updated_at":"2020-10-10T17:09:39.000Z","dependencies_parsed_at":"2023-02-21T16:45:18.248Z","dependency_job_id":null,"html_url":"https://github.com/cs01/you-might-not-need-requests","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cs01/you-might-not-need-requests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs01%2Fyou-might-not-need-requests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs01%2Fyou-might-not-need-requests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs01%2Fyou-might-not-need-requests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs01%2Fyou-might-not-need-requests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cs01","download_url":"https://codeload.github.com/cs01/you-might-not-need-requests/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cs01%2Fyou-might-not-need-requests/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30247347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T05:41:50.788Z","status":"ssl_error","status_checked_at":"2026-03-08T05:41:39.075Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11T19:01:05.821Z","updated_at":"2026-03-08T06:32:01.826Z","avatar_url":"https://github.com/cs01.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"*This is a work in progress*\n\nThe Python `requests` package creates a convenient API to make http requests, but comes at the price of adding a 3rd party dependency to your project.\n\nYou might be able to get away with using Python's standard library (and keeping your sanity) if you're doing something simple.\n\nFeel free to copy any of these code snippets to your codebase, no attribution required.\n\n### http GET request\n\nrequests\n\n```python\nimport requests\n\nrequests.get(url)\n```\n\nwithout requests\n\n```python\nimport urllib.parse\nimport urllib.request\n\ndef http_get(url):\n    res = urllib.request.urlopen(url)\n    charset = res.headers.get_content_charset() or \"utf-8\"\n    return res.read().decode(charset)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcs01%2Fyou-might-not-need-requests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcs01%2Fyou-might-not-need-requests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcs01%2Fyou-might-not-need-requests/lists"}