diff --git a/README.md b/README.md index 0dacc97..3be81d1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Twitter Scraper -[![Go Reference](https://pkg.go.dev/badge/github.com/n0madic/twitter-scraper.svg)](https://pkg.go.dev/github.com/n0madic/twitter-scraper) +[![Go Reference](https://pkg.go.dev/badge/github.com/imperatrona/twitter-scraper.svg)](https://pkg.go.dev/github.com/imperatrona/twitter-scraper) Twitter's API is annoying to work with, and has lots of limitations — luckily their frontend (JavaScript) has it's own API, which I reverse-engineered. @@ -11,7 +11,7 @@ You can use this library to get the text of any user's Tweets trivially. ## Installation ```shell -go get -u github.com/n0madic/twitter-scraper +go get -u github.com/imperatrona/twitter-scraper ``` ## Usage @@ -93,7 +93,7 @@ package main import ( "context" "fmt" - twitterscraper "github.com/n0madic/twitter-scraper" + twitterscraper "github.com/imperatrona/twitter-scraper" ) func main() { @@ -121,7 +121,7 @@ package main import ( "fmt" - twitterscraper "github.com/n0madic/twitter-scraper" + twitterscraper "github.com/imperatrona/twitter-scraper" ) func main() { @@ -150,7 +150,7 @@ package main import ( "context" "fmt" - twitterscraper "github.com/n0madic/twitter-scraper" + twitterscraper "github.com/imperatrona/twitter-scraper" ) func main() { @@ -173,7 +173,6 @@ The search ends if we have 50 tweets. See [Rules and filtering](https://developer.twitter.com/en/docs/tweets/rules-and-filtering/overview/standard-operators) for build standard queries. - #### Set search mode ```golang @@ -182,11 +181,11 @@ scraper.SetSearchMode(twitterscraper.SearchLatest) Options: -* `twitterscraper.SearchTop` - default mode -* `twitterscraper.SearchLatest` - live mode -* `twitterscraper.SearchPhotos` - image mode -* `twitterscraper.SearchVideos` - video mode -* `twitterscraper.SearchUsers` - user mode +- `twitterscraper.SearchTop` - default mode +- `twitterscraper.SearchLatest` - live mode +- `twitterscraper.SearchPhotos` - image mode +- `twitterscraper.SearchVideos` - video mode +- `twitterscraper.SearchUsers` - user mode ### Get profile @@ -195,7 +194,7 @@ package main import ( "fmt" - twitterscraper "github.com/n0madic/twitter-scraper" + twitterscraper "github.com/imperatrona/twitter-scraper" ) func main() { @@ -217,7 +216,7 @@ package main import ( "context" "fmt" - twitterscraper "github.com/n0madic/twitter-scraper" + twitterscraper "github.com/imperatrona/twitter-scraper" ) func main() { @@ -242,7 +241,7 @@ package main import ( "fmt" - twitterscraper "github.com/n0madic/twitter-scraper" + twitterscraper "github.com/imperatrona/twitter-scraper" ) func main() { diff --git a/api_test.go b/api_test.go index 2168de9..d35b8f6 100644 --- a/api_test.go +++ b/api_test.go @@ -3,7 +3,7 @@ package twitterscraper_test import ( "testing" - twitterscraper "github.com/n0madic/twitter-scraper" + twitterscraper "github.com/imperatrona/twitter-scraper" ) func TestGetGuestToken(t *testing.T) { diff --git a/auth_test.go b/auth_test.go index 88bfd68..bc9eb50 100644 --- a/auth_test.go +++ b/auth_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - twitterscraper "github.com/n0madic/twitter-scraper" + twitterscraper "github.com/imperatrona/twitter-scraper" ) var ( diff --git a/go.mod b/go.mod index a41c030..c3b9fdf 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/n0madic/twitter-scraper +module github.com/imperatrona/twitter-scraper go 1.16 diff --git a/profile_test.go b/profile_test.go index bdde60d..15bc2e3 100644 --- a/profile_test.go +++ b/profile_test.go @@ -7,7 +7,7 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - twitterscraper "github.com/n0madic/twitter-scraper" + twitterscraper "github.com/imperatrona/twitter-scraper" ) func TestGetProfile(t *testing.T) { diff --git a/search_test.go b/search_test.go index 36c61bc..0177a0d 100644 --- a/search_test.go +++ b/search_test.go @@ -4,7 +4,7 @@ import ( "context" "testing" - twitterscraper "github.com/n0madic/twitter-scraper" + twitterscraper "github.com/imperatrona/twitter-scraper" ) func TestFetchSearchCursor(t *testing.T) { diff --git a/tweets_test.go b/tweets_test.go index 71960c1..9687118 100644 --- a/tweets_test.go +++ b/tweets_test.go @@ -7,7 +7,7 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - twitterscraper "github.com/n0madic/twitter-scraper" + twitterscraper "github.com/imperatrona/twitter-scraper" ) var cmpOptions = cmp.Options{