A crawler inspired by wdzeng/shopee-coins-bot uses puppeteer and github actions instead of selenium and docker. Therefore, it can lower the users' entry barrier and speed up.
- Fork this repo under your account
- Add
SHOPEE_USR
,SHOPEE_PWD
andAES_KEY
(which is used to encrypt your cookie) in actions secrets
- Run actions mannualy for the first time
- In most situations, you will receive an SMS authentication in the initial run. After that, github actions will cache your encryted cookie and use it to login derictly in the future.
The workflow will update the cache every time it runs. This is achieved by using a unique key for each run (by adding the github.run_id suffix to the key) and using restore-keys to restore the nearest cache. If there is already a cache named cache-{hash}
(without run_id suffix), it would always be used because of the exact match.
To enable this feature, you need to first delete the cache cache-{hash}
so that the workflow will use the nearest cache in the next run.
reference
- wdzeng/shopee-coins-bot (source code)
- wdzeng/bot-automate (github actions version)
I found the original author has also written a github actions version during writing this doc. XD
Addie Tsai-Yun, Chung @ addiechung.tyc@gmail.com