Skip to content

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

Notifications You must be signed in to change notification settings

charlie0227/crawler_shopee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shopee coin getter

CI status

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

alt text

dependencies

python==3.6
selenium==3.8.0

Installation

Docker

Getting Started

git clone https://github.com/charlie0227/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.tw/shopee-coins-internal/?scenario=1 to own your shopee daily coin after login.

License

MIT

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published