One line to login Zhihu by QRCode.
Project description
Zhihu QRCode Login
One line to login Zhihu by QRCode.
Usage
from zhihu_qrcode_login import login_handler
# if remember_me = True, the cookies will be saved in your disk,
# and next time you can login without scanning QRCode.
# return requests.Session
session = login_handler.login(remember_me=True)
# and later you can also use get_session() to get the session.
# session = login_handler.get_session()
# use it!
# you can use get_visit_headers() to get the headers which can visit Zhihu successfully.
session.get('https://www.zhihu.com/collections/mine', headers=login_handler.get_visit_headers())
TODO
- After users scan the QRCode and confirm login on their devices, close the QRCode automatically.
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
Built Distribution
Close
Hashes for Zhihu_QRCode_Login-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 163097db802d051b0a7f436fe9662be898f715816d0492ce1828bc41e537631e |
|
MD5 | b569a5d3000fae05b64e738b08e2c686 |
|
BLAKE2b-256 | 6221ed0cb710e220956a7ca6e4741e27010bf23b97db2c1a9fa870ab95d4dbdc |