rfa

command module
v0.0.0-...-15e18b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 2 Imported by: 0

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

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

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL