Popmart Automate Script
- Login Based: Watch Demo
- Cookie Based: Watch Demo
-
Clone the repository and install dependencies using npm:
git clone https://github.com/un4ckn0wl3z/Labubot.git cd Labubot npm install
-
Install the following Chrome extensions for cookie and local storage export:
-
Configure your credentials and file names for cookie and local storage in the
_data/config.yml
file:login_base: creds: username: 'your-username' password: 'your-password' cookie_base: cookie_file: 'cookie-file.json' # default is www.popmart.com.cookies.json storage_file: 'storage-file.json' # default is www.popmart.com.storage.json
Replace
'your-username'
,'your-password'
,'cookie-file.json'
, and'storage-file.json'
with your actual credentials and file names. -
Edit your cookie and local storage data that you already exported from extension:
_data/www.popmart.com.cookies.json
for cookies_data/www.popmart.com.storage.json
for for local storage
-
Set your target product URL in the
_data/config.yml
file:target_product: 'https://www.popmart.com/th/products/xxxx'
To run the script for bot login based:
npm run bot-login-based
To run the script for bot cookie based:
npm run bot-cookie-based
Additional scripts include (PM2 required):
-
Start forecast bot cookie:
npm run forecast-bot-cookie
-
Stop forecast bot cookie:
npm run stop-forecast-bot-cookie
@types/colors
: ^1.2.1@types/figlet
: ^1.5.8colors
: ^1.4.0dayjs
: ^1.11.11figlet
: ^1.7.0js-yaml
: ^4.1.0puppeteer
: ^22.12.1ts-node
: ^10.9.2
@tsconfig/node18
: ^18.2.4typescript
: ^5.5.3
This project is licensed under the WTFPL License. See the LICENSE file for details.