acao

command module
v0.0.0-...-7a0f12f Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 10 Imported by: 0

README

🦙 acao Go Go Report Card Sourcegraph

acao(阿草), the tool man for data scraping of https://asoul.video/.

Deploy to Aliyun serverless function with Raika

update_member Update A-SOUL member profile.
$ GOOS=linux go build .

$ Raika function create \
    --name asoul_video_update_member \
    --memory 128 \
    --init-timeout 300 \
    --runtime-timeout 600 \
    --binary-file acao \
    --trigger=cron \
    --cron="0 30 * * * *" \
    --env SOURCE_REPORT_TYPE=update_member \
    --env SOURCE_REPORT_URL=https://asoul.video/source/report \
    --env SOURCE_REPORT_KEY=<REDACTED> \
    --platform aliyun
create_video Fetch A-SOUL member's videos from Douyin.
$ GOOS=linux go build .

$ Raika function create \
    --name asoul_video_create_video \
    --memory 128 \
    --init-timeout 300 \
    --runtime-timeout 600 \
    --binary-file acao \
    --trigger=cron \
    --cron="0 30 * * * *" \
    --env SOURCE_REPORT_TYPE=create_video \
    --env SOURCE_REPORT_URL=https://asoul.video/source/report \
    --env SOURCE_REPORT_KEY=<REDACTED> \
    --platform aliyun
update_video_meta Update video metadata, especially the created time.
$ GOOS=linux go build .

$ Raika function create \
    --name asoul_video_update_video_meta \
    --memory 128 \
    --init-timeout 300 \
    --runtime-timeout 600 \
    --binary-file acao \
    --trigger=cron \
    --cron="0 30 * * * *" \
    --env SOURCE_REPORT_TYPE=update_video_meta \
    --env SOURCE_REPORT_URL=https://asoul.video/source/report \
    --env SOURCE_REPORT_KEY=<REDACTED> \
    --platform aliyun

License

MIT

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