https://github.com/astrocode-id/go-flaresolverr
FlareSolverr Golang Client
https://github.com/astrocode-id/go-flaresolverr
api-client flaresolverr golang
Last synced: 3 months ago
JSON representation
FlareSolverr Golang Client
- Host: GitHub
- URL: https://github.com/astrocode-id/go-flaresolverr
- Owner: astrocode-id
- License: mit
- Created: 2023-01-24T09:02:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-26T03:57:40.000Z (over 3 years ago)
- Last Synced: 2025-12-18T10:13:14.293Z (6 months ago)
- Topics: api-client, flaresolverr, golang
- Language: Go
- Homepage: https://github.com/fahimbagar/go-flaresolverr
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# FlareSolverr v3 Go Client
[](https://opensource.org/licenses/MIT)
[](https://codeclimate.com/github/astrocode-id/go-flaresolverr)
[](https://codeclimate.com/github/astrocode-id/go-flaresolverr/test_coverage)
[](https://github.com/astrocode-id/go-flaresolverr/issues)
[](https://circleci.com/gh/astrocode-id/go-flaresolverr)
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fastrocode-id%2Fgo-flaresolverr?ref=badge_shield)
[go-flaresolverr](https://github.com/astrocode-id/go-flaresolverr) is Golang client for [FlareSolverr](https://github.com/FlareSolverr/FlareSolverr) v3.
## Installation
1. Install [FlareSolverr](https://github.com/FlareSolverr/FlareSolverr#installation)
2. Get [go-flaresolverr](https://github.com/astrocode-id/go-flaresolverr)
```shell
go get github.com/astrocode-id/go-flaresolverr
```
## Examples
### Get Page
Retrieves webpage using [`request.get`](https://github.com/FlareSolverr/FlareSolverr#-requestget) command.
```go
package main
import (
"fmt"
"log"
"github.com/PuerkitoBio/goquery"
"github.com/astrocode-id/go-flaresolverr"
)
func main() {
c, err := flaresolverr.NewClient(flaresolverr.Config{
BaseURL: baseURL,
})
if err != nil {
log.Fatal(err)
}
b, err := c.Get(flaresolverr.GetParams{
URL: "https://ifconfig.me",
})
if err != nil {
log.Fatal(err)
}
doc, err := goquery.NewDocumentFromReader(bytes.NewReader(b))
if err != nil {
log.Fatal(err)
}
ipAddress := doc.Find("strong").First().Text()
fmt.Println(ipAddress)
}
```
### Post Page
Retrieves webpage using [`request.post`](https://github.com/FlareSolverr/FlareSolverr#-requestpost) command.
_TODO_
## Note
- :warning: Currently, [FlareSolverr v3](https://github.com/FlareSolverr/FlareSolverr/releases)
doesn't support `session` and `proxy`.
For more detail, see [ChangeLog](https://github.com/FlareSolverr/FlareSolverr/blob/master/CHANGELOG.md#v300-20230104).
## License
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fastrocode-id%2Fgo-flaresolverr?ref=badge_large)