Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tosh2230/rfa
Detect text in screenshots of "Ring Fit Adventure for Nintendo Switch" posted on twitter and save the play record to Google BigQuery.
https://github.com/tosh2230/rfa
golang google-bigquery ring-fit-adventure twitter
Last synced: 14 days ago
JSON representation
Detect text in screenshots of "Ring Fit Adventure for Nintendo Switch" posted on twitter and save the play record to Google BigQuery.
- Host: GitHub
- URL: https://github.com/tosh2230/rfa
- Owner: tosh2230
- License: mit
- Created: 2021-04-02T13:37:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-05T21:04:26.000Z (over 1 year ago)
- Last Synced: 2024-07-30T20:57:07.373Z (3 months ago)
- Topics: golang, google-bigquery, ring-fit-adventure, twitter
- Language: Go
- Homepage:
- Size: 12.3 MB
- Stars: 4
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rfa
Detect text in screenshots of "Ring Fit Adventure for Nintendo Switch" posted on twitter and save the play record to Google BigQuery.
## Description
![rfa](https://github.com/tosh223/rfa/blob/main/rfa.png)
## Requirements
The dependent modules are managed by Go Modules.
Please see [go.mod](https://github.com/tosh223/rfa/blob/main/go.mod).## Usage
- Register Twitter developer secrets to Cloud Secret Manager as `rfa`
```sh
$ cat ./secret/twitter_example.json
{
"consumer_key": "****************",
"consumer_secret": "****************",
"access_token": "****************",
"access_token_secret": "****************"
}
$ cp ./secret/twitter{_example,}.json # then replace the values with your actual ones.$ gcloud secrets create rfa --data-file=./secret/twitter.json
```- Create `rfa` dataset in Google BigQuery
```sh
$ bq mk -d rfa
```## Arguments
```sh
$ ./rfa --help
Usage of ./rfa:
-l string
bigquery_location (default "us")
-p string
gcp_project_id
-s string
search_size (default "1")
-u string
twitter_id
```## Test
- Set active Application Default Credentials
```sh
$ gcloud auth application-default login
```- Set environment variable `TEST_PROJECT_ID`
- Regist string for testing to Cloud Secret Manager as `rfa_test`
```sh
$ gcloud secrets create rfa_test --data-file=./twitter/testdata/TestSetTwitterConfig.json
```