Skip to content

Latest commit

 

History

History
66 lines (53 loc) · 1.97 KB

README.md

File metadata and controls

66 lines (53 loc) · 1.97 KB

🦙 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