Skip to content

release: 0.1.0 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Changelog

## 0.1.0 (2025-08-20)

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))


### Chores

* update SDK settings ([b3671c2](https://github.com/ScrapeGraphAI/scrapegraphai-go/commit/b3671c28676539d26390c214911188376fe48e93))
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
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
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 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>
<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>

The Scrapegraphai Go library provides convenient access to the [Scrapegraphai REST API](https://scrapegraphai.com)
from applications written in Go.
Expand All @@ -9,18 +9,26 @@ 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+.
Expand All @@ -36,8 +44,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 +275,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 +489,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
62 changes: 31 additions & 31 deletions api.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"net/http"
"os"

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

// Client creates a struct with services and top level methods that help with
Expand Down
6 changes: 3 additions & 3 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"testing"
"time"

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

type closureTransport struct {
Expand Down
10 changes: 5 additions & 5 deletions crawl.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"fmt"
"net/http"

"github.com/stainless-sdks/scrapegraphai-go/internal/apijson"
"github.com/stainless-sdks/scrapegraphai-go/internal/requestconfig"
"github.com/stainless-sdks/scrapegraphai-go/option"
"github.com/stainless-sdks/scrapegraphai-go/packages/param"
"github.com/stainless-sdks/scrapegraphai-go/packages/respjson"
"github.com/ScrapeGraphAI/scrapegraphai-go/internal/apijson"
"github.com/ScrapeGraphAI/scrapegraphai-go/internal/requestconfig"
"github.com/ScrapeGraphAI/scrapegraphai-go/option"
"github.com/ScrapeGraphAI/scrapegraphai-go/packages/param"
"github.com/ScrapeGraphAI/scrapegraphai-go/packages/respjson"
)

// CrawlService contains methods and other services that help with interacting with
Expand Down
6 changes: 3 additions & 3 deletions crawl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"os"
"testing"

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

func TestCrawlGetResults(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions credit.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"context"
"net/http"

"github.com/stainless-sdks/scrapegraphai-go/internal/apijson"
"github.com/stainless-sdks/scrapegraphai-go/internal/requestconfig"
"github.com/stainless-sdks/scrapegraphai-go/option"
"github.com/stainless-sdks/scrapegraphai-go/packages/respjson"
"github.com/ScrapeGraphAI/scrapegraphai-go/internal/apijson"
"github.com/ScrapeGraphAI/scrapegraphai-go/internal/requestconfig"
"github.com/ScrapeGraphAI/scrapegraphai-go/option"
"github.com/ScrapeGraphAI/scrapegraphai-go/packages/respjson"
)

// CreditService contains methods and other services that help with interacting
Expand Down
6 changes: 3 additions & 3 deletions credit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"os"
"testing"

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

func TestCreditGet(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions feedback.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"net/http"
"time"

"github.com/stainless-sdks/scrapegraphai-go/internal/apijson"
"github.com/stainless-sdks/scrapegraphai-go/internal/requestconfig"
"github.com/stainless-sdks/scrapegraphai-go/option"
"github.com/stainless-sdks/scrapegraphai-go/packages/param"
"github.com/stainless-sdks/scrapegraphai-go/packages/respjson"
"github.com/ScrapeGraphAI/scrapegraphai-go/internal/apijson"
"github.com/ScrapeGraphAI/scrapegraphai-go/internal/requestconfig"
"github.com/ScrapeGraphAI/scrapegraphai-go/option"
"github.com/ScrapeGraphAI/scrapegraphai-go/packages/param"
"github.com/ScrapeGraphAI/scrapegraphai-go/packages/respjson"
)

// FeedbackService contains methods and other services that help with interacting
Expand Down
6 changes: 3 additions & 3 deletions feedback_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"os"
"testing"

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

func TestFeedbackSubmitWithOptionalParams(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion field.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package scrapegraphai

import (
"github.com/stainless-sdks/scrapegraphai-go/packages/param"
"github.com/ScrapeGraphAI/scrapegraphai-go/packages/param"
"io"
"time"
)
Expand Down
10 changes: 5 additions & 5 deletions generateschema.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"fmt"
"net/http"

"github.com/stainless-sdks/scrapegraphai-go/internal/apijson"
"github.com/stainless-sdks/scrapegraphai-go/internal/requestconfig"
"github.com/stainless-sdks/scrapegraphai-go/option"
"github.com/stainless-sdks/scrapegraphai-go/packages/param"
"github.com/stainless-sdks/scrapegraphai-go/packages/respjson"
"github.com/ScrapeGraphAI/scrapegraphai-go/internal/apijson"
"github.com/ScrapeGraphAI/scrapegraphai-go/internal/requestconfig"
"github.com/ScrapeGraphAI/scrapegraphai-go/option"
"github.com/ScrapeGraphAI/scrapegraphai-go/packages/param"
"github.com/ScrapeGraphAI/scrapegraphai-go/packages/respjson"
)

// GenerateSchemaService contains methods and other services that help with
Expand Down
6 changes: 3 additions & 3 deletions generateschema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"os"
"testing"

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

func TestGenerateSchemaNewWithOptionalParams(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/stainless-sdks/scrapegraphai-go
module github.com/ScrapeGraphAI/scrapegraphai-go

go 1.21

Expand Down
8 changes: 4 additions & 4 deletions healthz.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"context"
"net/http"

"github.com/stainless-sdks/scrapegraphai-go/internal/apijson"
"github.com/stainless-sdks/scrapegraphai-go/internal/requestconfig"
"github.com/stainless-sdks/scrapegraphai-go/option"
"github.com/stainless-sdks/scrapegraphai-go/packages/respjson"
"github.com/ScrapeGraphAI/scrapegraphai-go/internal/apijson"
"github.com/ScrapeGraphAI/scrapegraphai-go/internal/requestconfig"
"github.com/ScrapeGraphAI/scrapegraphai-go/option"
"github.com/ScrapeGraphAI/scrapegraphai-go/packages/respjson"
)

// HealthzService contains methods and other services that help with interacting
Expand Down
6 changes: 3 additions & 3 deletions healthz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"os"
"testing"

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

func TestHealthzCheck(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/apierror/apierror.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"net/http"
"net/http/httputil"

"github.com/stainless-sdks/scrapegraphai-go/internal/apijson"
"github.com/stainless-sdks/scrapegraphai-go/packages/respjson"
"github.com/ScrapeGraphAI/scrapegraphai-go/internal/apijson"
"github.com/ScrapeGraphAI/scrapegraphai-go/packages/respjson"
)

// Error represents an error that originates from the API, i.e. when a request is
Expand Down
2 changes: 1 addition & 1 deletion internal/apiform/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"sync"
"time"

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

var encoders sync.Map // map[encoderEntry]encoderFunc
Expand Down
2 changes: 1 addition & 1 deletion internal/apiform/form_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package apiform

import (
"bytes"
"github.com/stainless-sdks/scrapegraphai-go/packages/param"
"github.com/ScrapeGraphAI/scrapegraphai-go/packages/param"
"io"
"mime/multipart"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion internal/apiform/richparam.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package apiform

import (
"github.com/stainless-sdks/scrapegraphai-go/packages/param"
"github.com/ScrapeGraphAI/scrapegraphai-go/packages/param"
"mime/multipart"
"reflect"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/apijson/decodeparam_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package apijson_test
import (
"encoding/json"
"fmt"
"github.com/stainless-sdks/scrapegraphai-go/internal/apijson"
"github.com/stainless-sdks/scrapegraphai-go/packages/param"
"github.com/ScrapeGraphAI/scrapegraphai-go/internal/apijson"
"github.com/ScrapeGraphAI/scrapegraphai-go/packages/param"
"reflect"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/apijson/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package apijson
import (
"encoding/json"
"fmt"
"github.com/stainless-sdks/scrapegraphai-go/packages/param"
"github.com/ScrapeGraphAI/scrapegraphai-go/packages/param"
"reflect"
"strconv"
"sync"
Expand Down
4 changes: 2 additions & 2 deletions internal/apijson/decoderesp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package apijson_test

import (
"encoding/json"
"github.com/stainless-sdks/scrapegraphai-go/internal/apijson"
"github.com/stainless-sdks/scrapegraphai-go/packages/respjson"
"github.com/ScrapeGraphAI/scrapegraphai-go/internal/apijson"
"github.com/ScrapeGraphAI/scrapegraphai-go/packages/respjson"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/apijson/subfield.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package apijson

import (
"github.com/stainless-sdks/scrapegraphai-go/packages/respjson"
"github.com/ScrapeGraphAI/scrapegraphai-go/packages/respjson"
"reflect"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/apijson/union.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package apijson

import (
"errors"
"github.com/stainless-sdks/scrapegraphai-go/packages/param"
"github.com/ScrapeGraphAI/scrapegraphai-go/packages/param"
"reflect"

"github.com/tidwall/gjson"
Expand Down
2 changes: 1 addition & 1 deletion internal/apiquery/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"sync"
"time"

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

var encoders sync.Map // map[reflect.Type]encoderFunc
Expand Down
Loading
Loading