awesome-python-login-model
😮python模拟登陆一些大型网站,还有一些简单的爬虫,希望对你们有所帮助❤️,如果喜欢记得给个star哦🌟
Collection of Python scripts that simulate logins to 20+ popular sites (Bilibili, Weibo, GitHub, Taobao) using Selenium plus example scrapers.
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.
Where it fits
- Study how popular websites handle browser login flows
- Build a scraper that reuses a logged-in session cookie
- Learn Selenium and requests by reading working examples
- Bootstrap a personal data-collection script for a Chinese site