Skip to content

quinghui/v2ex.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Sign in v2ex.com and take the daily award coins for you.

  • This Python script only supports Python3 environment;

For v2ex_coins.py

This script v2ex_coins.py reads a cookie's name and value from the json file v2ex_cookie.json to log v2ex.com in.

  • You may need to change the cookie key 'A2' or 'auth' in the json file to your own v2ex.com cookie;
  • Both files v2ex_coins.py and v2ex_cookie.json, or v2ex_user.json, would be in same directory.
     Usage:
            v2ex_coins.py --chk         show your balance and the last 20 records   
            v2ex_coins.py --coins       take sign award coins

Using cookie key 'A2'

The context of the cookie file v2ex_cookie.json looks like following:

     {   
     "A2": "2|1:0|10:1432694436|2:A2|56:xxxxx...|uuuuu..."   
     }   

Using cookie key 'auth'

On the other hand, you can also use the cookie 'auth' and its value instead of 'A2' in this json file. The 'auth' value is one part of 'A2' too. It is encoded by Base64 in this part "|56:xxx...|" of 'A2' behind "|56:". The number 56 presents its longth. You would decode it via Base64 or other Base64 decode tools , and then put it in the cookie file.

For example:

     {
     "auth": "nnn..."
     }

For v2ex_coins_login.py

The script v2ex_coins_login.py which signs in v2ex.com via username and password, not cookies, takes daily award coins or shows up your balance details.
The username and password are in the json file v2ex_user.json, and the json file would be in same directory with v2ex_coins_login.py.

    Usage:  
            v2ex_coins_login.py --chk        show your balance and the last 20 records  
            v2ex_coins_login.py --coins      take daily sign award  

About

Sign in v2ex.com, and take its daily award coins.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages