epireve / crawler_shopee

This is a script to collect daily coins on Shopee Malaysia.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shopee coin getter

CI status

Shopee coin getter is a script to collect daily shopee coins.

Login

dependencies

python==3.6
selenium==3.8.0

Installation

Docker

Getting Started

git clone https://github.com/charlie27/crawler_shopee.git
cd crawler_shopee
cp env.py.sample env.py

Filled in your username and password in env.py

text_username = "<your shopee username>"
text_password = "<your shopee password>"
cookie_name = "cookie.pkl"

Usage

Simply run command

docker run -it --rm -v <your-path>/crawler_shopee:/code charlie27/python36-selenium-chromedriver sh -c "python main.py"

Or build by yourself

docker build -t shopee:latest .
docker run -it --rm -v <your-path>/crawler_shopee:/code shopee sh -c "python main.py"

You'll need to enter SMS authenticate first time if used password to login

alt text

Please Enter SMS code in 60 seconds:

crontab

0 0 * * * /usr/bin/docker run --rm -v <your-path>/crawler_shopee:/code shopee sh -c "python main.py" >/dev/null

Running the tests

Explain how to run the unit test

docker run -it --rm -v .:/code charlie27/python36-selenium-chromedriver sh -c "python unit_test.py"

Method

checkPopModal()

Auto close the advertisement modal shopee show first time

checkLogin()

check is login or not

loginByCookie()

First, check your cookie is able to login, if success goto clickCoin

loginByPass()

Second, use your account and password to login

checkSMS()

Third, if you login by password first time, you'll need to pass SMS authenticate.

clickCoin()

Last, goto https://shopee.com.my/shopee-coins-internal/?scenario=1 to own your shopee daily coin after login.

License

MIT

About

This is a script to collect daily coins on Shopee Malaysia.


Languages

Language:Python 93.0%Language:Dockerfile 7.0%