mirror of
https://github.com/CharlesPikachu/DecryptLogin.git
synced 2026-10-27 03:14:46 +08:00
982175a007fafd2c3dae2a65bb754d421fc8a9cf
DecryptLogin
APIs for loginning some websites using <requests>.
You can star this repository to keep track of the project if it's helpful for you, thank you for your support.
Support List
| Websites | support PC API? | support mobile API? | in Chinese |
|---|---|---|---|
| Yes | Yes | 新浪微博 | |
| douban | Yes | No | 豆瓣 |
| GitHub | Yes | No | Github |
| Music163 | Yes | No | 网易云音乐 |
| 12306 | Yes | No | 中国铁路12306 |
| QQZone | No | Yes | QQ空间 |
| QQQun | No | Yes | QQ群 |
| QQId | No | Yes | 我的QQ中心 |
| zhihu | Yes | No | 知乎 |
| Bilibili | Yes | No | B站 |
| toutiao | No | Yes | 今日头条 |
Some Cases by using DecryptLogin
- weiboMonitor: https://mp.weixin.qq.com/s/uOT1cGqXkOq-Hdc8TVnglg
- QQReport: https://mp.weixin.qq.com/s/dsVtEp_TFeyeSAAUn1zFEw
- bilibiliDownloadUserVideos: https://mp.weixin.qq.com/s/GaVW4_nbAaO0QvphI7QgnA
- NeteaseSongListDownloader: https://mp.weixin.qq.com/s/_82U7luG6jmV-xb8-Qkiew
- NeteaseListenLeaderboard: https://mp.weixin.qq.com/s/Wlf1a82oACc9N7zGezcy8Q
Install
Use setup.py
Step1:
git clone https://github.com/CharlesPikachu/DecryptLogin.git
Step2:
cd DecryptLogin -> run "python setup.py install"
Use pip
pip install git+https://github.com/CharlesPikachu/DecryptLogin.git@master
Usage
Arguments
Specific Loginning Arguments:
--username: your username.
--password: your password.
--mode: pc/mobile.
--crackvcFunc: an user-defined function used to crack the verification code (usage: crackvcFunc(verification_code_path)).
Quick Start
from DecryptLogin import login
lg = login.Login()
infos_return, session = lg.douban(username[telephone], password, 'pc')
infos_return, session = lg.github(username[email], password, 'pc')
infos_return, session = lg.weibo(username[telephone], password, 'mobile')
infos_return, session = lg.music163(username[telephone/email], password, 'pc')
infos_return, session = lg.zt12306(username[telephone], password, 'pc')
infos_return, session = lg.QQZone('mobile')
infos_return, session = lg.QQQun('mobile')
infos_return, session = lg.QQId('mobile')
infos_return, session = lg.zhihu(username, password, 'pc')
infos_return, session = lg.bilibili(username, password, 'pc')
infos_return, session = lg.toutiao(username, password, 'mobile')
Detailed documentation
Here is a brief and incomplete introduction: https://mp.weixin.qq.com/s/lctw2dGjOesXrfvkNhzYfQ
The detailed documentation is still on the way...
Thanks List
| Author | Time | Contribution |
|---|---|---|
| @skygongque | 2020-02-13 | add verification code processing in (weibo, pc) |
More
WeChat Official Accounts
Description
DecryptLogin: APIs for loginning some websites by using requests.
46 MiB
Languages
Python
100%
