https://github.com/asoul-sig/acao
🦙 阿草,数据爬取工具人 / acao, the tool man for data scraping of https://asoul.video/.
https://github.com/asoul-sig/acao
a-soul data-scraping douyin douyin-api
Last synced: 5 months ago
JSON representation
🦙 阿草,数据爬取工具人 / acao, the tool man for data scraping of https://asoul.video/.
- Host: GitHub
- URL: https://github.com/asoul-sig/acao
- Owner: asoul-sig
- License: mit
- Created: 2021-09-20T17:00:58.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-25T01:54:29.000Z (over 2 years ago)
- Last Synced: 2025-04-13T12:40:19.246Z (8 months ago)
- Topics: a-soul, data-scraping, douyin, douyin-api
- Language: Go
- Homepage:
- Size: 230 KB
- Stars: 12
- Watchers: 0
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 🦙 acao  [](https://goreportcard.com/report/github.com/asoul-video/acao) [](https://sourcegraph.com/github.com/asoul-video/acao)
acao(阿草), the tool man for data scraping of https://asoul.video/.
## Deploy to Aliyun serverless function with [Raika](https://github.com/serverless-moe/Raika)
### `update_member` Update A-SOUL member profile.
```bash
$ 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= \
--platform aliyun
```
### `create_video` Fetch A-SOUL member's videos from Douyin.
```bash
$ 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= \
--platform aliyun
```
### `update_video_meta` Update video metadata, especially the created time.
```bash
$ 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= \
--platform aliyun
```
## License
MIT