command
module
Version:
v0.0.0-...-15e18b1
Opens a new window with list of versions in this module.
Published: Mar 11, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
Requirements
The dependent modules are managed by Go Modules.
Please see go.mod.
Usage
-
Register Twitter developer secrets to Cloud Secret Manager as rfa
$ 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
$ bq mk -d rfa
Arguments
$ ./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
$ gcloud auth application-default login
-
Set environment variable TEST_PROJECT_ID
-
Regist string for testing to Cloud Secret Manager as rfa_test
$ gcloud secrets create rfa_test --data-file=./twitter/testdata/TestSetTwitterConfig.json
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.