Hey everyone! We've created an Oxylabs Go SDK that'll allow users to more easily utilize the Oxylabs SERP APIs (and more later) via a Golang library.
You can find it here: https://github.com/mslmio/oxylabs-sdk-go
This is just an MVP and we'll be working on improving it over time with more features.
Would appreciate if Oxylabs users could try it out and give their feedback so we can start addressing it and improving the SDK.
Here's a quick start example:
package main
import (
"fmt"
"github.com/mslmio/oxylabs-sdk-go/serp"
)
func main() {
// Set your Oxylabs API Credentials.
const username = "username"
const password = "password"
// Initialize the SERP realtime client with your credentials.
c := serp.Init(username, password)
// Use `google_search` as a source to scrape Google with adidas as a query.
res, err := c.ScrapeGoogleSearch(
"adidas",
)
if err != nil {
panic(err)
}
fmt.Printf("Results: %+v\n", res)
}
It works with both the real-time and async integration methods and makes it especially easy to use the latter method which is otherwise quite tedious.
Please see detailed documentation at https://pkg.go.dev/github.com/mslmio/oxylabs-sdk-go
Source code is at github.com/mslmio/oxylabs-sdk-go
Thank you!
Top comments (0)