8000 GitHub - Yooootsuba/McDaily: API wrapper for interacting with the Taiwan McDaily app.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Sep 29, 2021. It is now read-only.

Yooootsuba/McDaily

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

McDaily

Please note that this app might stop working in the near future, as they have changed the hashing algorithm from simple MD5 to AES encryption + Base64 hashing using a differently formatted string.

API wrapper for interacting with the Taiwan McDaily app.

Installation

$ python setup.py install

Example

6FFE Obtains the login token

from McDaily import McDailyAccount


# Input
username = input('Username : ')
password = input('Password : ')

# Login
account = McDailyAccount()
response = account.login(username, password)

# Print the results
print('')
print('Login status : ' + response['rm'])
print('Username     : ' + response['results']['member_info']['name']['last_name'] + response['results']['member_info']['name']['first_name'])
print('Token        : ' + response['results']['member_info']['access_token'])

You can also fill in the token yourself

from McDaily import McDailyAccount


account = McDailyAccount()
account.set_token('Your token')

# Lottery
print(account.lottery_get_item())

# Get coupon list
print(account.lottery_get_item())

Contributing

Thanks Still34

About

API wrapper for interacting with the Taiwan McDaily app.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0