explaingit

kr1s77/awesome-python-login-model

16,225PythonAudience · developerComplexity · 2/5LicenseSetup · moderate

TLDR

Collection of Python scripts that simulate logins to 20+ popular sites (Bilibili, Weibo, GitHub, Taobao) using Selenium plus example scrapers.

Mindmap

mindmap
  root((awesome-python-login-model))
    Inputs
      Site credentials
      Target URLs
    Outputs
      Session cookies
      Scraped data
    Use Cases
      Learn web scraping
      Automate site logins
      Study reverse-engineered auth
    Tech Stack
      Python
      Selenium
      Requests
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Study how popular websites handle browser login flows

USE CASE 2

Build a scraper that reuses a logged-in session cookie

USE CASE 3

Learn Selenium and requests by reading working examples

USE CASE 4

Bootstrap a personal data-collection script for a Chinese site

Tech stack

PythonSeleniumRequests

Getting it running

Difficulty · moderate Time to first run · 30min

Some scripts are outdated as target sites change their login systems, expect to patch CAPTCHA and 2FA handling.

Released under a GNU license meaning you can use and modify it but derivative works must also be open-source under the same terms.

In plain English

This is a collection of Python scripts that automate logging into a variety of popular websites, along with some basic web scraping (automatically pulling data from web pages) examples. The login scripts work by simulating what a real browser does when a user types in their username and password, using a tool called selenium (a library that controls a browser programmatically) or by reverse-engineering the website's login process directly. The collection covers more than 20 sites, including Bilibili, Douban, Facebook, GitHub, QQZone, Weibo, Taobao, NetEase Cloud Music, Baidu, and others. The approach is primarily: use selenium to log in and get a session cookie (a small piece of data the website uses to remember you're logged in), then use faster, lighter methods like HTTP requests to actually collect the data you want. This two-step approach keeps scraping efficient. The repository is written entirely in Python 3 and is presented as a learning resource for people studying web scraping. The author notes the project is intended for educational and personal use only. Some scripts may become outdated as websites change their login systems. It is released under the GNU license.

Copy-paste prompts

Prompt 1
Walk me through the Selenium login flow used for Weibo in this repo
Prompt 2
Adapt the GitHub login script in awesome-python-login-model to use my saved cookies
Prompt 3
Explain how the project switches from Selenium to requests after login
Prompt 4
Show me how to update one of these scripts for a site that switched to 2FA
Prompt 5
Refactor the Bilibili login script to handle the current captcha system
Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub kr1s77 on gitmyhub

Verify against the repo before relying on details.