Login some website using requests.
Project description
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 |
---|---|---|---|
✓ | ✓ | 新浪微博 | |
douban | ✓ | ✗ | 豆瓣 |
gitHub | ✓ | ✗ | Github |
music163 | ✓ | ✗ | 网易云音乐 |
zt12306 | ✓ | ✗ | 中国铁路12306 |
QQZone | ✗ | ✓ | QQ空间 |
QQQun | ✗ | ✓ | QQ群 |
QQId | ✗ | ✓ | 我的QQ中心 |
zhihu | ✓ | ✗ | 知乎 |
bilibili | ✓ | ✗ | B站 |
toutiao | ✗ | ✓ | 今日头条 |
taobao | ✓ | ✗ | 淘宝 |
jingdong | ✓ | ✗ | 京东 |
ifeng | ✓ | ✗ | 凤凰网 |
sohu | ✓ | ✓ | 搜狐 |
zgconline | ✓ | ✗ | 中关村在线 |
Some Cases by Using DecryptLogin
Name | Introduction | code | in Chinese |
---|---|---|---|
weiboMonitor | click | click | 微博监控 |
QQReport | click | click | 生成QQ个人专属报告 |
bilibiliDownloadUserVideos | click | click | 下载B站指定UP主的所有视频 |
NeteaseSongListDownloader | click | click | 网易云个人歌单下载器 |
NeteaseListenLeaderboard | click | click | 网易云个人听歌排行榜 |
Install
Pip install
run "pip install DecryptLogin"
Source code install
(1) Offline
Step1: git clone https://github.com/CharlesPikachu/DecryptLogin.git
Step2: cd DecryptLogin -> run "python setup.py install"
(2) Online
run "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')
infos_return, session = lg.taobao('pc')
infos_return, session = lg.jingdong('pc')
infos_return, session = lg.ifeng(username, password, 'pc')
infos_return, session = lg.sohu(username, password, 'mobile')
infos_return, session = lg.zgconline(username, password, 'pc')
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
Charles_pikachu
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
DecryptLogin-0.1.11.tar.gz
(20.0 kB
view hashes)
Built Distribution
Close
Hashes for DecryptLogin-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecda3e73b3f30eff4fcee7f85e0a85296f571a0ae489d54a950b66cc1f32c04f |
|
MD5 | 774e73d39d9765aa286df894fb2eebd7 |
|
BLAKE2b-256 | 61b8e30d0fd94ea605177edecd5be2b42ea96e43d774b738098b75df70fbeb73 |