{"id":15034643,"url":"https://github.com/charlespikachu/decryptlogin","last_synced_at":"2025-05-14T09:06:36.817Z","repository":{"id":37579370,"uuid":"172416496","full_name":"CharlesPikachu/DecryptLogin","owner":"CharlesPikachu","description":"DecryptLogin: APIs for loginning some websites by using requests.","archived":false,"fork":false,"pushed_at":"2024-08-09T13:41:26.000Z","size":38150,"stargazers_count":2851,"open_issues_count":12,"forks_count":754,"subscribers_count":60,"default_branch":"master","last_synced_at":"2025-05-14T09:05:21.263Z","etag":null,"topics":["12306","baidu","baiduyun","bilibili","crawler","jingdong","login","migu","pypi","python3","requests","spider","stackoverflow","taobao","tencent","twitter","weibo","xiami","xiaomi","zhihu"],"latest_commit_sha":null,"homepage":"https://httpsgithubcomcharlespikachudecryptlogin.readthedocs.io/zh/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CharlesPikachu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"patreon":"CharlesPikachu","ko_fi":"charlespikachu","custom":"https://github.com/CharlesPikachu/DecryptLogin/tree/master/.github/pictures/alipay.JPG"}},"created_at":"2019-02-25T01:57:20.000Z","updated_at":"2025-05-10T02:03:07.000Z","dependencies_parsed_at":"2024-09-30T21:40:30.611Z","dependency_job_id":"cdfb5f66-8597-4685-aa48-cf46cdc9f90a","html_url":"https://github.com/CharlesPikachu/DecryptLogin","commit_stats":{"total_commits":318,"total_committers":2,"mean_commits":159.0,"dds":"0.0062893081761006275","last_synced_commit":"bb4228c0535ffd7060b7816cbd1da51ba8d95ab8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CharlesPikachu%2FDecryptLogin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CharlesPikachu%2FDecryptLogin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CharlesPikachu%2FDecryptLogin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CharlesPikachu%2FDecryptLogin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CharlesPikachu","download_url":"https://codeload.github.com/CharlesPikachu/DecryptLogin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254110374,"owners_count":22016391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["12306","baidu","baiduyun","bilibili","crawler","jingdong","login","migu","pypi","python3","requests","spider","stackoverflow","taobao","tencent","twitter","weibo","xiami","xiaomi","zhihu"],"created_at":"2024-09-24T20:25:50.188Z","updated_at":"2025-05-14T09:06:36.798Z","avatar_url":"https://github.com/CharlesPikachu.png","language":"Python","readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"./docs/logo.png\" width=\"600\"/\u003e\n\u003c/div\u003e\n\u003cbr /\u003e\n\n[![docs](https://img.shields.io/badge/docs-latest-blue)](https://httpsgithubcomcharlespikachudecryptlogin.readthedocs.io/zh/latest/)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/DecryptLogin)](https://pypi.org/project/DecryptLogin/)\n[![PyPI](https://img.shields.io/pypi/v/DecryptLogin)](https://pypi.org/project/DecryptLogin)\n[![license](https://img.shields.io/github/license/CharlesPikachu/DecryptLogin.svg)](https://github.com/CharlesPikachu/DecryptLogin/blob/master/LICENSE)\n[![PyPI - Downloads](https://pepy.tech/badge/DecryptLogin)](https://pypi.org/project/DecryptLogin/)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/DecryptLogin?style=flat-square)](https://pypi.org/project/DecryptLogin/)\n[![issue resolution](https://isitmaintained.com/badge/resolution/CharlesPikachu/DecryptLogin.svg)](https://github.com/CharlesPikachu/DecryptLogin/issues)\n[![open issues](https://isitmaintained.com/badge/open/CharlesPikachu/DecryptLogin.svg)](https://github.com/CharlesPikachu/DecryptLogin/issues)\n\nDocuments-CN:  https://httpsgithubcomcharlespikachudecryptlogin.readthedocs.io/zh/latest/\n\nDocuments-EN: https://httpsgithubcomcharlespikachudecryptlogin.readthedocs.io/en/latest/\n\n\n# DecryptLogin\n\n```\nAPIs for loginning some websites by using requests.\nYou can star this repository to keep track of the project if it's helpful for you, thank you for your support.\n```\n\n\n# Statements\n\n```\nThis repo is created for learning python.\nIf I find that anyone leverage this project in an illegal way, I will delete this project immediately.\n\n本项目仅供python爱好者学习使用, 若作者发现该项目以任何不正当方式被使用, 将立即删除该项目。\n希望大家合理利用该项目🙂\n```\n\n\n# Login with Requests\n\n### Install\n\n**Preparation**\n\n- [Nodejs](https://nodejs.org/en/): Since some of the supported websites need to compile the js code, you should install the nodejs in your computer.\n\n**Pip install**\n\n```sh\nrun \"pip install DecryptLogin\"\n```\n\n**Source code install**\n\n```sh\n(1) Offline\nStep1: git clone https://github.com/CharlesPikachu/DecryptLogin.git\nStep2: cd DecryptLogin -\u003e run \"python setup.py install\"\n(2) Online\nrun \"pip install git+https://github.com/CharlesPikachu/DecryptLogin.git@master\"\n```\n\n### Support List\n\n|  Website_EN      | PC Mode | Mobile Mode | ScanQR Mode | Website_CN        |\n|  :----:          | :----:  | :----:      | :----:      | :----:            |\n|  weibo           | ✓       | ✓           | ✓           | 新浪微博          |\n|  douban          | ✓       | ✗           | ✓           | 豆瓣              |\n|  github          | ✓       | ✗           | ✗           | Github            |\n|  music163        | ✓       | ✗           | ✓           | 网易云音乐        |\n|  zt12306         | ✓       | ✗           | ✓           | 中国铁路12306     |\n|  QQZone          | ✗       | ✗           | ✓           | QQ空间            |\n|  QQQun           | ✗       | ✗           | ✓           | QQ群              |\n|  QQId            | ✗       | ✗           | ✓           | 我的QQ中心        |\n|  zhihu           | ✓       | ✗           | ✓           | 知乎         \t |\n|  bilibili        | ✓       | ✓           | ✓           | B站               |\n|  toutiao         | ✗       | ✗           | ✓           | 今日头条          |\n|  taobao          | ✗       | ✗           | ✓           | 淘宝              |\n|  jingdong        | ✗       | ✗           | ✓           | 京东              |\n|  ifeng           | ✓       | ✗           | ✗           | 凤凰网            |\n|  sohu            | ✓       | ✓           | ✗           | 搜狐              |\n|  zgconline       | ✓       | ✗           | ✗           | 中关村在线        |\n|  lagou           | ✓       | ✗           | ✗           | 拉勾网            |\n|  twitter         | ✓       | ✓           | ✗           | 推特              |\n|  eSurfing        | ✗       | ✗           | ✓           | 天翼              |\n|  renren          | ✓       | ✗           | ✗           | 人人网            |\n|  w3cschool       | ✓       | ✗           | ✗           | W3Cschool(编程狮) |\n|  fishc           | ✓       | ✗           | ✗           | 鱼C论坛           |\n|  youdao          | ✓       | ✗           | ✗           | 有道              |\n|  baidupan        | ✓       | ✗           | ✓           | 百度网盘          |\n|  stackoverflow   | ✓       | ✗           | ✗           | Stackoverflow     |\n|  codalab         | ✓       | ✗           | ✗           | CodaLab           |\n|  pypi            | ✓       | ✗           | ✗           | PyPi              |\n|  douyu           | ✗       | ✗           | ✓           | 斗鱼直播          |\n|  migu            | ✓       | ✗           | ✗           | 咪咕音乐          |\n|  qunar           | ✓       | ✗           | ✗           | 去哪儿旅行        |\n|  mieshop         | ✓       | ✗           | ✗           | 小米商城          |\n|  mpweixin        | ✓       | ✗           | ✗           | 微信公众号        |\n|  baidutieba      | ✗       | ✗           | ✓           | 百度贴吧          |\n|  dazhongdianping | ✗       | ✗           | ✓           | 大众点评          |\n|  jianguoyun      | ✓       | ✗           | ✗           | 坚果云            |\n|  cloud189        | ✓       | ✓           | ✗           | 天翼云盘          |\n|  qqmusic         | ✗       | ✗           | ✓           | QQ音乐            |\n|  ximalaya        | ✗       | ✗           | ✓           | 喜马拉雅          |\n|  icourse163      | ✗       | ✓           | ✗           | 中国大学MOOC      |\n|  xiaomihealth    | ✗       | ✓           | ✗           | 小米运动          |\n|  tencentvideo    | ✗       | ✗           | ✓           | 腾讯视频          |\n|  baidu           | ✗       | ✗           | ✓           | 百度              |\n|  alipan          | ✗       | ✗           | ✓           | 阿里云盘          |\n\n### Quick Start\n\n**login.Login**\n```python\nfrom DecryptLogin import login\n\n# the instanced Login class object\nlg = login.Login()\n# use the provided api function to login in the target website (e.g., twitter)\ninfos_return, session = lg.twitter(username='Your Username', password='Your Password')\n```\n\n**login.Client**\n```python\nfrom DecryptLogin import login\n\n# the instanced client\nclient = login.Client()\n# the instanced weibo\nweibo = client.weibo(reload_history=True)\n# use the login function to login in weibo\ninfos_return, session = weibo.login('me', 'pass', 'scanqr')\n```\n\n\n# Practice with DecryptLogin\n\n### Install\n\n**Preparation**\n\n- [ffmpeg](https://ffmpeg.org/): You should set ffmpeg in environment variable.\n- [aria2c](https://aria2.github.io/): You should set aria2c in environment variable.\n\n**Pip install**\n\n```\nrun \"pip install DecryptLoginExamples\"\n```\n\n### Support List\n\n|  Project_EN                 |   Introduction                                                   |   Core Code                                                                                                                                |  Project_CN                      |\n|  :----:                     |   :----:                                                         |   :----:                                                                                                                                   |  :----:                          |\n|  weibomonitor               |   [click](https://mp.weixin.qq.com/s/uOT1cGqXkOq-Hdc8TVnglg)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/weibomonitor)                  |  微博监控                        |\n|  qqreports                  |\t  [click](https://mp.weixin.qq.com/s/dsVtEp_TFeyeSAAUn1zFEw)     |\t [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/qqreports)                     |  生成QQ个人专属报告              |\n|  bilibiliuservideos         |   [click](https://mp.weixin.qq.com/s/GaVW4_nbAaO0QvphI7QgnA)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/bilibiliuservideos)            |  下载B站指定UP主的所有视频       |\n|  neteasesonglistdownloader  |   [click](https://mp.weixin.qq.com/s/_82U7luG6jmV-xb8-Qkiew)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/neteasesonglistdownloader)     |  网易云个人歌单下载器            |\n|  neteaselistenleaderboard   |   [click](https://mp.weixin.qq.com/s/Wlf1a82oACc9N7zGezcy8Q)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/neteaselistenleaderboard)      |  网易云个人听歌排行榜            |\n|  userweibospider            |   [click](https://mp.weixin.qq.com/s/-3BDTZAE1x7nfCLNq2mFBw)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/userweibospider)               |  下载指定微博用户的所有微博数据  |\n|  neteasesignin              |   [click](https://mp.weixin.qq.com/s/8d7smUSzW2ds1ypZq-yeFw)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/neteasesignin)                 |  网易云音乐自动签到              |\n|  weiboemoji                 |   [click](https://mp.weixin.qq.com/s/QiPm4gyE8i5amR5gB3IbBA)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/weiboemoji)                    |  微博表情包爬取                  |\n|  weibosender                |   [click](https://mp.weixin.qq.com/s/_aIY-iVj3xetfHQyMxflkg)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/weibosender)                   |  大吼一声发微博                  |\n|  tbgoods                    |   [click](https://mp.weixin.qq.com/s/NhK9eeWNXv_wPnolccRR-g)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/tbgoods)                       |  淘宝商品数据小爬虫              |\n|  jdgoods                    |   [click](https://mp.weixin.qq.com/s/LXheJveR248ZW4SP5F6fjw)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/jdgoods)                       |  京东商品数据小爬虫              |\n|  delallweibos               |   [click](https://mp.weixin.qq.com/s/E5Erg10FvyutEKaB_JGufA)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/delallweibos)                  |  批量删除微博                    |\n|  clearqzone                 |   [click](https://mp.weixin.qq.com/s/Fj9MQXXRZ8wuKiX3Tytx8A)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/clearqzone)                    |  批量删除QQ空间说说              |\n|  neteaseeveryday            |   [click](https://mp.weixin.qq.com/s/tliFa5CYVEirMEyUj0jPbg)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/neteaseeveryday)               |  在终端看网易云每日歌曲推荐      |\n|  neteaseclickplaylist       |   [click](https://mp.weixin.qq.com/s/BpoO55I-jxAGO_Vv32khlA)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/neteaseclickplaylist)          |  网易云音乐刷歌曲播放量          |\n|  cloud189signin             |   [click](https://mp.weixin.qq.com/s/tSLTSKDMzMAkP2deCjkanA)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/cloud189signin)                |  天翼云盘自动签到+抽奖           |\n|  moocdl                     |   [click](https://mp.weixin.qq.com/s/KsXU-pMvT8GzpPWVpcWIOA)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/moocdl)                        |  中国大学MOOC下载器              |\n|  modifymihealthsteps        |   [click](https://mp.weixin.qq.com/s/TQLM9GIW50UWAsKoXb7pzQ)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/modifymihealthsteps)           |  修改小米运动中的步数            |\n|  taobaosnap                 |   [click](https://mp.weixin.qq.com/s/vCZYtynHtQAOuQJHvjhpWA)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/taobaosnap)                    |  淘宝抢购脚本                    |\n|  jingdongsnap               |   [click](https://mp.weixin.qq.com/s/-H8bwuUIPDi41d09tTlvRw)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/jingdongsnap)                  |  京东抢购脚本                    |\n|  bilibiliupmonitor          |   [click](https://mp.weixin.qq.com/s/KjJLPcqHecK8T8LDVesxJQ)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/bilibiliupmonitor)             |  B站UP主监控                     |\n|  bilibililottery            |   [click](https://mp.weixin.qq.com/s/7kGjT48AOG_zB1v-cODgVw)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/bilibililottery)               |  B站监控关注的UP主并自动转发抽奖 |\n|  weibowater                 |   [click](https://mp.weixin.qq.com/s/Avf169tvDNRLrgmrNj8jUw)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/weibowater)                    |  微博水军                        |\n|  weiboblacklist             |   [click](https://mp.weixin.qq.com/s/9npyr9banKSUl-mVXYhmPA)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/weiboblacklist)                |  微博批量拉黑脚本                |\n|  weibolottery               |   [click](https://mp.weixin.qq.com/s/sGT4Pwp-yu2grNvSr3vafQ)     |   [click](https://github.com/CharlesPikachu/DecryptLogin/tree/master/examples/DecryptLoginExamples/crawlers/weibolottery)                  |  微博自动转发抽奖                |\n\n### Quick Start\n\n```python\nfrom DecryptLoginExamples import client\n​\nconfig = {\n    'username': 'charlespikachu', \n    'time_interval':  1800,\n}\ncrawler_executor = client.Client()\ncrawler_executor.executor('bilibililottery', config=config)\n```\n\n\n# Thanks List\n\n|  Author                                            |           Time            |   Contribution                                     |\n|  :----:                                            |           :----:          |   :----:                                           |\n|  @[skygongque](https://github.com/skygongque)      |           2020-02-13      |   add verification code processing in (weibo, pc)  |\n\n\n# Citation\n\nIf you use this project in your research, please cite this project:\n\n```\n@misc{decryptlogin2020,\n    author = {Zhenchao Jin},\n    title = {DecryptLogin: APIs for loginning some websites by using requests},\n    year = {2020},\n    publisher = {GitHub},\n    journal = {GitHub repository},\n    howpublished = {\\url{https://github.com/CharlesPikachu/DecryptLogin}},\n}\n```\n\n\n# Projects in Charles_pikachu\n\n- [Games](https://github.com/CharlesPikachu/Games): Create interesting games by pure python.\n- [DecryptLogin](https://github.com/CharlesPikachu/DecryptLogin): APIs for loginning some websites by using requests.\n- [Musicdl](https://github.com/CharlesPikachu/musicdl): A lightweight music downloader written by pure python.\n- [Videodl](https://github.com/CharlesPikachu/videodl): A lightweight video downloader written by pure python.\n- [Pytools](https://github.com/CharlesPikachu/pytools): Some useful tools written by pure python.\n- [PikachuWeChat](https://github.com/CharlesPikachu/pikachuwechat): Play WeChat with itchat-uos.\n- [Pydrawing](https://github.com/CharlesPikachu/pydrawing): Beautify your image or video.\n- [ImageCompressor](https://github.com/CharlesPikachu/imagecompressor): Image compressors written by pure python.\n- [FreeProxy](https://github.com/CharlesPikachu/freeproxy): Collecting free proxies from internet.\n- [Paperdl](https://github.com/CharlesPikachu/paperdl): Search and download paper from specific websites.\n- [Sciogovterminal](https://github.com/CharlesPikachu/sciogovterminal): Browse \"The State Council Information Office of the People's Republic of China\" in the terminal.\n- [CodeFree](https://github.com/CharlesPikachu/codefree): Make no code a reality.\n- [DeepLearningToys](https://github.com/CharlesPikachu/deeplearningtoys): Some deep learning toys implemented in pytorch.\n- [DataAnalysis](https://github.com/CharlesPikachu/dataanalysis): Some data analysis projects in charles_pikachu.\n- [Imagedl](https://github.com/CharlesPikachu/imagedl): Search and download images from specific websites.\n- [Pytoydl](https://github.com/CharlesPikachu/pytoydl): A toy deep learning framework built upon numpy.\n- [NovelDL](https://github.com/CharlesPikachu/noveldl): Search and download novels from some specific websites.\n\n\n# More\n\n### WeChat Official Accounts\n\n*Charles_pikachu*  \n![img](./docs/pikachu.jpg)","funding_links":["https://patreon.com/CharlesPikachu","https://ko-fi.com/charlespikachu","https://github.com/CharlesPikachu/DecryptLogin/tree/master/.github/pictures/alipay.JPG"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlespikachu%2Fdecryptlogin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharlespikachu%2Fdecryptlogin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlespikachu%2Fdecryptlogin/lists"}