All Projects → imleowoo → fuck-login

imleowoo / fuck-login

Licence: MIT license
提供一些境内境外常见的站点Python登录脚本

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to fuck-login

Sdk3rd
第三方SDK集成库,授权/分享/支付
Stars: ✭ 249 (+522.5%)
Mutual labels:  login, weibo
OAuthLogin.AspNetCore
第三方平台联合登陆(facebook、微信、微博、QQ、Kakao)
Stars: ✭ 43 (+7.5%)
Mutual labels:  login, weibo
OAuthLogin
第三方平台联合登陆(facebook、微信、微博、QQ、Kakao)
Stars: ✭ 57 (+42.5%)
Mutual labels:  login, weibo
Fuck Login
模拟登录一些知名的网站,为了方便爬取需要登录的网站
Stars: ✭ 5,729 (+14222.5%)
Mutual labels:  login, weibo
Socialite
Socialite is an OAuth2 Authentication tool. It is inspired by laravel/socialite, you can easily use it without Laravel.
Stars: ✭ 1,026 (+2465%)
Mutual labels:  login, weibo
Nodejs Weibo Login
Nodejs模拟登录新浪微博模块
Stars: ✭ 39 (-2.5%)
Mutual labels:  login, weibo
Socialsdklibrary
提供微博、微信、QQ、Tim、QQ 轻聊版、钉钉的登陆分享功能支持;
Stars: ✭ 399 (+897.5%)
Mutual labels:  login, weibo
Decryptlogin
APIs for loginning some websites by using requests.
Stars: ✭ 1,861 (+4552.5%)
Mutual labels:  login, weibo
YHThirdManager
一个快速、简单、易集成、扩展性好的社交化组件。摒弃友盟等三方库,使用原生SDK。支持微信支付、微信分享、微信登录、微信授权、QQ授权、QQ分享、QQ登录、新浪授权、新浪登录、新浪分享、微博评论、微博获取、支付宝支付。极大的减小了包体积;同时加入了自动管理提示框的功能
Stars: ✭ 41 (+2.5%)
Mutual labels:  login, weibo
UniSpyServer
An Open source GameSpy emulator written in C#
Stars: ✭ 110 (+175%)
Mutual labels:  login
react-native-kakao-login
React Native module for kakao login sdk: rn-kakao-login
Stars: ✭ 76 (+90%)
Mutual labels:  login
Sketch-Page-Logic
It can help you drawing page logic in the sketch
Stars: ✭ 24 (-40%)
Mutual labels:  login
weibo topic
微博话题关键词,个人微博采集, 微博博文一键删除 selenium获取cookie,requests处理
Stars: ✭ 28 (-30%)
Mutual labels:  weibo
ReactSignupLoginComponent
The React SignupLogin Component is a drop in login/register/forgotPassword component to speed up development.
Stars: ✭ 30 (-25%)
Mutual labels:  login
EasyFirebase
No description or website provided.
Stars: ✭ 48 (+20%)
Mutual labels:  login
yoti-php-sdk
The PHP SDK for interacting with the Yoti Platform
Stars: ✭ 22 (-45%)
Mutual labels:  login
weibo-image-spider
微博图片爬虫,极速下载、高清原图、多种命令、简单实用。
Stars: ✭ 52 (+30%)
Mutual labels:  weibo
union
union login for wechat,weibo,qq,alipay with go
Stars: ✭ 23 (-42.5%)
Mutual labels:  weibo
react-login-registration
An example React / Redux / Redux Saga application talking to a Symfony 3 API
Stars: ✭ 31 (-22.5%)
Mutual labels:  login
Simpler
Simpler是一款轻量级的第三方微博应用,具有微博的基础功能,兼有外观优雅,运行流畅,内存占用低,省电省流量等特点。
Stars: ✭ 27 (-32.5%)
Mutual labels:  weibo

Fuck Login !

GitHub stars GitHub forks GitHub issues GitHub license PyPI - Python Version Email

2020-09-19 更新

很抱歉这个登陆脚本项目也没能持续更新下去,估计很多失效了。旧脚本在 deprecated 分支。

1.介绍

提供常见站点的模拟登陆

前言

由于原xchaoinfo/fuck-login的项目不再维护了,

所以利用业余时间参考xchaoinfo大神的代码重新做起一些常见站点的登录,希望一起交流学习。

登陆方式

  • 多数采用requests库创建会话session进行登陆
  • js加密会尽量转为Python实现,必要的js生成参数多采用PyExecJS,部分js代码过长会采用Selenium控制浏览器进行运行
  • 尽量不采用Selenium进行自动化操作登陆
  • 能力有限,水平一般。机器学习刚开始踩坑中,若登陆验证码的识别需要模型识别才能解决的话,暂时采用手动输入方案;若可通过OCR进行识别,会提提简单的处理思路。

2.程序结构

尽量每个登陆脚本采用相同的结构,希望能对执行流程的理解有所帮助。

import requests


class LoginWebsiteName:
    """登录程序结构"""
    
    # 登录操作会话对象
    session = requests.session()

    def __init__(self, username: str, password: str, **kwargs):
        self.username = username
        self.password = password
        pass

    def login(self) -> dict:
        """执行登录操作
        :return: `rtype:dict` 登录结果
        """
        pass

    def get_user_info(self) -> dict or None:
        """获取用户信息
        :return: 登录成功`rtype:dict`, 登录失败`rtype:None`
        """
        pass

    def get_login_cookies(self) -> dict:
        """获取用户登录后的cookies
        :return:
        """
        pass


if __name__ == '__main__':
    test_name = 'your username'
    test_password = 'your password'
    loginer = LoginWebsiteName(username=test_name, password=test_password)
    # 开始执行登录操作
    login_result = loginer.login()
    # 获取用户信息
    user_info = loginer.get_user_info()
    # 获取登录状态cookies
    cookies = loginer.get_login_cookies()

3. 已完成站点

关于每个站点的实现方式,我会在这个文档README-IDEAs.md中描述一下简单的思路。

  • 新浪微博
  • 今日头条
  • 搜狐新闻
  • 凤凰新闻
  • 豆瓣
  • 触电新闻媒体平台
  • GitHub
  • 中关村在线

4.写在最后

  • 脚本还在逐渐完善添加中,欢迎大家提Issues,顺便再给个Star吧;
  • 如果你觉得某个网站的登录很有代表性,欢迎在 Issues 中提出,我会尽量在之后的实现脚本中加入。
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].