update package name
This commit is contained in:
parent
fdd172a136
commit
8dda773032
7 changed files with 19 additions and 20 deletions
27
README.md
27
README.md
|
|
@ -1,6 +1,6 @@
|
|||
# Twitter Scraper
|
||||
|
||||
[](https://pkg.go.dev/github.com/n0madic/twitter-scraper)
|
||||
[](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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue