https://github.com/ksinica/spoof
Spoof is a Go package that provides transport that enables HTTP client requests to look similar to Chrome browser.
https://github.com/ksinica/spoof
chrome go spoof
Last synced: 5 months ago
JSON representation
Spoof is a Go package that provides transport that enables HTTP client requests to look similar to Chrome browser.
- Host: GitHub
- URL: https://github.com/ksinica/spoof
- Owner: ksinica
- License: mit
- Created: 2024-09-08T15:57:03.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-22T09:37:57.000Z (almost 2 years ago)
- Last Synced: 2025-04-08T12:31:11.540Z (about 1 year ago)
- Topics: chrome, go, spoof
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spoof
[](https://godoc.org/github.com/ksinica/spoof)
Spoof is a Go package that provides transport that enables HTTP client requests to look similar to Chrome browser. It tries to achieve this by evading TLS fingerprinting, changing HTTP/2 session parameters, and setting common browser headers.
> [!IMPORTANT]
> This package is not able to bypass JavaScript-based browser checks or more sophisticated bot detectors.
> [!NOTE]
> The package is alpha quality, breaking changes will be introduced.
## Usage
In order to use the transport, one needs to create a custom `http.Client` with it specified:
```go
client := http.Client{
Transport: &spoof.Transport{},
}
// Create a request with desired parameters.
res, err := client.Do(req)
if err != nil {
// ...
}
// ...
```
## License
Source code is available under the MIT [License](/LICENSE).