Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.1.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 15
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/scrapegraphai%2Fscrapegraphai-969ebada41127057e4cda129b2e7206224743b5c7fd33aa8ae062ff71b775ac9.yml
openapi_spec_hash: 2b2c2c684e6f6885398efca5f2b1f854
config_hash: 938d01575f4400810a85576c6324f29d
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/scrapegraphai%2Fscrapegraphai-633fdeab6abaefbe666099e8f86ce6b2acc9dacff1c33a80813bb04e8e437229.yml
openapi_spec_hash: f41ec90694ca8e7233bd20cc7ff1afbf
config_hash: 6889576ba0fdc14f2c71cea09a60a0f6
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Changelog

## 0.1.0 (2025-09-26)

Full Changelog: [v0.0.1...v0.1.0](https://github.com/ScrapeGraphAI/scrapegraphai-go/compare/v0.0.1...v0.1.0)

### Features

* add files ([97854ff](https://github.com/ScrapeGraphAI/scrapegraphai-go/commit/97854ff979b013c7efad31e34a3d69d79aa30324))


### Bug Fixes

* bugfix for setting JSON keys with special characters ([222be49](https://github.com/ScrapeGraphAI/scrapegraphai-go/commit/222be49bdaf83c8bc03cd4e3cac467e0053f564c))
* close body before retrying ([1d46935](https://github.com/ScrapeGraphAI/scrapegraphai-go/commit/1d4693550bac9b3731c9d7d531e83db9630a0632))
* **internal:** unmarshal correctly when there are multiple discriminators ([5468ee8](https://github.com/ScrapeGraphAI/scrapegraphai-go/commit/5468ee86e67c05f4785caa68a8406367a04e3bc7))
* use slices.Concat instead of sometimes modifying r.Options ([82ca835](https://github.com/ScrapeGraphAI/scrapegraphai-go/commit/82ca835db2e7304e50a4af6a7042a531ebd8058f))


### Chores

* bump minimum go version to 1.22 ([a915799](https://github.com/ScrapeGraphAI/scrapegraphai-go/commit/a915799b8fef759a3a8d0f3282aa96e1b683a81d))
* do not install brew dependencies in ./scripts/bootstrap by default ([3064991](https://github.com/ScrapeGraphAI/scrapegraphai-go/commit/3064991a415d952635d4556d3bf546701e2dbcd8))
* **internal:** codegen related update ([5b87899](https://github.com/ScrapeGraphAI/scrapegraphai-go/commit/5b878999e0a8295a834430c7311db61bb4ecc285))
* update more docs for 1.22 ([f6381a8](https://github.com/ScrapeGraphAI/scrapegraphai-go/commit/f6381a8ebbc32746beb76c123565b1d135ede2e6))
* update SDK settings ([b3671c2](https://github.com/ScrapeGraphAI/scrapegraphai-go/commit/b3671c28676539d26390c214911188376fe48e93))
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $ ./scripts/lint

This will install all the required dependencies and build the SDK.

You can also [install go 1.18+ manually](https://go.dev/doc/install).
You can also [install go 1.22+ manually](https://go.dev/doc/install).

## Modifying/Adding code

Expand Down Expand Up @@ -41,7 +41,7 @@ To use a local version of this library from source in another project, edit the
directive. This can be done through the CLI with the following:

```sh
$ go mod edit -replace github.com/stainless-sdks/scrapegraphai-go=/path/to/scrapegraphai-go
$ go mod edit -replace github.com/ScrapeGraphAI/scrapegraphai-go=/path/to/scrapegraphai-go
```

## Running tests
Expand Down
28 changes: 20 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Scrapegraphai Go API Library

<a href="https://pkg.go.dev/github.com/stainless-sdks/scrapegraphai-go"><img src="https://pkg.go.dev/badge/github.com/stainless-sdks/scrapegraphai-go.svg" alt="Go Reference"></a>
<!-- x-release-please-start-version -->

<a href="https://pkg.go.dev/github.com/ScrapeGraphAI/scrapegraphai-go"><img src="https://pkg.go.dev/badge/github.com/ScrapeGraphAI/scrapegraphai-go.svg" alt="Go Reference"></a>

<!-- x-release-please-end -->

The Scrapegraphai Go library provides convenient access to the [Scrapegraphai REST API](https://scrapegraphai.com)
from applications written in Go.
Expand All @@ -9,21 +13,29 @@ It is generated with [Stainless](https://www.stainless.com/).

## Installation

<!-- x-release-please-start-version -->

```go
import (
"github.com/stainless-sdks/scrapegraphai-go" // imported as scrapegraphai
"github.com/ScrapeGraphAI/scrapegraphai-go" // imported as scrapegraphai
)
```

<!-- x-release-please-end -->

Or to pin the version:

<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/stainless-sdks/scrapegraphai-go@v0.0.1'
go get -u 'github.com/ScrapeGraphAI/scrapegraphai-go@v0.1.0'
```

<!-- x-release-please-end -->

## Requirements

This library requires Go 1.18+.
This library requires Go 1.22+.

## Usage

Expand All @@ -36,8 +48,8 @@ import (
"context"
"fmt"

"github.com/stainless-sdks/scrapegraphai-go"
"github.com/stainless-sdks/scrapegraphai-go/option"
"github.com/ScrapeGraphAI/scrapegraphai-go"
"github.com/ScrapeGraphAI/scrapegraphai-go/option"
)

func main() {
Expand Down Expand Up @@ -267,7 +279,7 @@ client.Smartscraper.New(context.TODO(), ...,

The request option `option.WithDebugLog(nil)` may be helpful while debugging.

See the [full list of request options](https://pkg.go.dev/github.com/stainless-sdks/scrapegraphai-go/option).
See the [full list of request options](https://pkg.go.dev/github.com/ScrapeGraphAI/scrapegraphai-go/option).

### Pagination

Expand Down Expand Up @@ -481,7 +493,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con

We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.

We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/scrapegraphai-go/issues) with questions, bugs, or suggestions.
We are keen for your feedback; please open an [issue](https://www.github.com/ScrapeGraphAI/scrapegraphai-go/issues) with questions, bugs, or suggestions.

## Contributing

Expand Down
4 changes: 2 additions & 2 deletions aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package scrapegraphai

import (
"github.com/stainless-sdks/scrapegraphai-go/internal/apierror"
"github.com/stainless-sdks/scrapegraphai-go/packages/param"
"github.com/ScrapeGraphAI/scrapegraphai-go/internal/apierror"
"github.com/ScrapeGraphAI/scrapegraphai-go/packages/param"
)

// aliased to make [param.APIUnion] private when embedding
Expand Down
Loading
Loading