twitter-scraper wrapped for Social-Picker-API
- Install Go
- Create
credentials.json
somewhere – a JSON file, containing username and password. See anexample/credentials.json
- Install dependencies –
go get .
- Build package for you platform –
go build -o Social-Picker-Twitter-Scrapper
- run
chmod +x Social-Picker-Twitter-Scrapper
if created binary is not executable
- run
- Login to retrieve this-app-specific cookies –
./Social-Picker-Twitter-Scrapper login cookies.json credentials.json
– wherelogin
is a method for this app to get authenticationcookies.json
is a path to persistent cookies file managed by this appcredentials.json
is a path to credentials file you created at step #2
- Check
cookies.json
(or your filepath) to exist and to be a JSON (array or{ "Name": "…", "Value": "…" }
) - Run
./Social-Picker-Twitter-Scrapper getTweet cookies.json 123456789
– wheregetTweet
is a method for this app to get authenticationcookies.json
is a path to persistent cookies file managed by this app123456789
is ID of a tweet you want to get
- Outputs errors to
stderr
, fine tweet in SocialPost format tostdout