An open API service indexing awesome lists of open source software.

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/.

Awesome Lists containing this project

README

          

# 🦙 acao ![Go](https://github.com/asoul-video/acao/workflows/Go/badge.svg) [![Go Report Card](https://goreportcard.com/badge/github.com/asoul-video/acao)](https://goreportcard.com/report/github.com/asoul-video/acao) [![Sourcegraph](https://img.shields.io/badge/view%20on-Sourcegraph-brightgreen.svg?logo=sourcegraph)](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