Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mihaibogdaneugen/dwdtweetsgo
CLI tool for downloading tweets given a specific query parameter
https://github.com/mihaibogdaneugen/dwdtweetsgo
Last synced: 16 days ago
JSON representation
CLI tool for downloading tweets given a specific query parameter
- Host: GitHub
- URL: https://github.com/mihaibogdaneugen/dwdtweetsgo
- Owner: MihaiBogdanEugen
- License: apache-2.0
- Created: 2018-05-20T10:42:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-24T22:36:12.000Z (over 6 years ago)
- Last Synced: 2024-06-20T03:26:23.723Z (5 months ago)
- Language: Go
- Size: 835 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
dwdtweetsgo
=========
CLI tool for downloading tweets given a specific query parameterThis project is a CLI tool for downloading tweets given a specific query parameter by making use of [twitterquerygo](https://github.com/MihaiBogdanEugen/twitterquerygo).
[![Build Status](https://travis-ci.org/MihaiBogdanEugen/dwdtweetsgo.svg?branch=master)](https://travis-ci.org/MihaiBogdanEugen/dwdtweetsgo)
Releases
-----
> UNTESTED, please run directly from sourceCheck the [Releases](https://github.com/MihaiBogdanEugen/dwdtweetsgo/releases/tag/1.0.0) page for a binary release for your current platform.
Compiling & running from source
-----
> Make sure you have GO installed and configuredTake a look at [run.sh](run.sh) use:
```shell
$ CONSUMER_KEY=hey CONSUMER_SECRET=secret QUERY=query OUTPUT_FOLDER=/full/folder/path go run main.go
```Configuration
-----
This application uses [namsral/flag](github.com/namsral/flag) lib to configure flags or environment variable:| Environment Variable | Flag | Type | Default Value | Description |
| ------------- | ------------- | ------------- | ------------- | ------------- |
| CONSUMER_KEY | -consumer-key | String | - | Twitter API Consumer Key |
| CONSUMER_SECRET | -consumer-secret | String | - | Twitter API Consumer Secret |
| OUTPUT_FOLDER | -output-folder | String | - | Output folder path |
| QUERY | -query | String | - | Search query of 500 characters maximum, including operators |
| LANGUAGE | -language | String | en | Restricts tweets to the given language, given by an ISO 639-1 code |
| RESULT_TYPE | -result-type | String | recent | Specifies what type of search results you would prefer to receive. Accepted values are `recent`, `popular` or `mixed` |
| SINCE_ID | -since-id | Uint64 | - | Returns results with an ID greater than (that is, more recent than) the specified ID |
| JSON_LOGGING | -json-logging | Bool | true | Whether to log in JSON format or not |
| LOG_LEVEL | -log-level | String | debug | The log level (panic, fatal, error, warn, info, debug) |