Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serguun42/social-picker-twitter-scrapper
twitter-scraper wrapped for Social-Picker-API
https://github.com/serguun42/social-picker-twitter-scrapper
go twitter twitter-scraper
Last synced: 2 months ago
JSON representation
twitter-scraper wrapped for Social-Picker-API
- Host: GitHub
- URL: https://github.com/serguun42/social-picker-twitter-scrapper
- Owner: serguun42
- License: bsl-1.0
- Created: 2023-06-14T18:04:01.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-16T18:46:27.000Z (11 months ago)
- Last Synced: 2024-02-16T19:46:47.766Z (11 months ago)
- Topics: go, twitter, twitter-scraper
- Language: Go
- Homepage: https://github.com/serguun42/Social-Picker-API
- Size: 10.7 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Social Picker Twitter Scrapper
[twitter-scraper](https://github.com/n0madic/twitter-scraper) wrapped for [Social-Picker-API](https://github.com/serguun42/Social-Picker-API)
## Usage
1. [Install Go](https://go.dev/)
2. Create `credentials.json` somewhere – a JSON file, containing username and password. See an [`example/credentials.json`](./example/credentials.json)
3. Install dependencies – `go get .`
4. 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
5. Login to retrieve this-app-specific cookies – `./Social-Picker-Twitter-Scrapper login cookies.json credentials.json` – where
- `login` is a method for this app to get authentication
- `cookies.json` is a path to persistent cookies file managed by this app
- `credentials.json` is a path to credentials file you created at step #2
6. Check `cookies.json` (or your filepath) to exist and to be a JSON (_array or `{ "Name": "…", "Value": "…" }`_)
7. Run `./Social-Picker-Twitter-Scrapper getTweet cookies.json 123456789` – where
- `getTweet` is a method for this app to get authentication
- `cookies.json` is a path to persistent cookies file managed by this app
- `123456789` is ID of a tweet you want to get
8. Outputs errors to `stderr`, fine tweet in SocialPost format to `stdout`---
### [BSL-1.0 License](./LICENSE)