fake-headers
Package for generate headers to http requests.
Decision gist · record as of 2026-08-14
Yes, if you need a simple, dependency-light way to generate User-Agent strings for local testing or scraping. No, if you need current, maintained header generation—the package is abandoned and its User-Agent strings are from 2019 browsers. Consider it only for projects where outdated headers are acceptable or where you control the target server.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with only two runtime dependencies (bs4, html5lib).
- However, the package is abandoned—last release was 2019-06-16 with no commits since then.
- Use only if the static header generation meets your needs without expecting maintenance or updates.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license text.
last release 2019-06-16 (2616 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 73,481 downloads/mo, #14,990 on PyPI
Alternatives
Verify before relying
pip install fake-headers
from fake_headers import Headers
header = Headers(browser="chrome", os="win", headers=True)
print(header.generate())- Whether the generated User-Agent strings remain realistic given the package has not been updated since 2019
- Whether the header generation works reliably with current versions of bs4 and html5lib
What it is and what it does
fake-headers is a lightweight Python library that generates realistic HTTP headers and User-Agent strings without requiring internet access. It uses bs4 and html5lib to parse and construct headers that mimic real browsers (Chrome, Firefox, Opera) across different operating systems (Windows, macOS, Linux). The package is designed for scenarios where you need to make HTTP requests appear to come from a real browser rather than a script.
You instantiate a Headers object with optional parameters specifying which browser and OS to simulate, then call generate() to get a dictionary of headers ready to pass to HTTP libraries like requests. The package can optionally include additional headers beyond User-Agent, such as Accept, Accept-Language, and Cache-Control. However, the package has been abandoned since mid-2019, so the User-Agent strings and header patterns it generates may not reflect current browser behavior.
Use it for
- Web scraping where the target site blocks requests with missing or suspicious User-Agent headers
- Testing HTTP client code that needs to simulate requests from different browsers without mocking
- Rotating User-Agent strings in automated HTTP requests to avoid detection as a bot
- Local development and testing that requires realistic browser headers without external dependencies
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need a simple, dependency-light way to generate User-Agent strings for local testing or scraping.
No, if you need current, maintained header generation—the package is abandoned and its User-Agent strings are from 2019 browsers. Consider it only for projects where outdated headers are acceptable or where you control the target server.
Install
fake-headers on PyPI
Before you install
Low install friction with only two runtime dependencies (bs4, html5lib). However, the package is abandoned—last release was 2019-06-16 with no commits since then. Use only if the static header generation meets your needs without expecting maintenance or updates.
License in practice
MIT license permits commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license text.
Quickstart
pip install fake-headers
from fake_headers import Headers
header = Headers(browser="chrome", os="win", headers=True)
print(header.generate())
Verify before relying
- Whether the generated User-Agent strings remain realistic given the package has not been updated since 2019
- Whether the header generation works reliably with current versions of bs4 and html5lib
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesbs4html5lib |
| Maintenance | Abandoned 2,616 days since the last release |
| First released | |
| Downloads | 73,481 / month, #14,990 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.7 |
Evidence: fake_headers-1.0.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “fake http headers”
- fake-headersGenerates realistic User-Agent strings and HTTP headers locally…
- fake-http-headerGenerates realistic-looking HTTP request headers with randomized user…
- pytest_httpserverA pytest fixture and standalone context manager that runs a fake HTTP…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also browserforge · fake-http-header · user-agent · fake-useragent · latest-user-agents · ua-generator · ua-parser · httpagentparser · primp · tls-client