Coder Social home page Coder Social logo

aioqzone / aioqzone Goto Github PK

View Code? Open in Web Editor NEW
34.0 34.0 8.0 10.88 MB

A python wrapper for Qzone web login and Qzone http api

Home Page: https://aioqzone.github.io/aioqzone/

License: GNU Affero General Public License v3.0

Python 100.00%
asyncio-spider autologin pydantic qzone-api

aioqzone's Introduction

aioqzone

aioqzone封装了一些Qzone接口。

python version style discuss

English | 简体中文

Warning

aioqzone 仍在开发阶段,任何功能和接口都有可能在未来的版本中发生变化。

Important

欢迎有意协助开发/维护的中文开发者。不仅限于本仓库,aioqzone 所属的任何仓库都需要您的帮助。

功能和特点

Qzone 功能

为什么选择 aioqzone

  • 完整的 IDE 类型支持 (typing)
  • API 类型验证 (pydantic)
  • 异步设计
  • 易于二次开发
  • 文档支持

在做了:

  • 完善的测试覆盖

包描述

包名 简述
aioqzone Qzone API
qqqr Qzone 登录

例子

这些仓库提供了一些 aioqzone 的实际使用示例。

aioqzone 的插件们

许可证

Copyright (C) 2022-2023 aioqzone.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

aioqzone's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar jamzumsum avatar rockchinq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

aioqzone's Issues

Fontconfig error: Cannot load default config file

Fontconfig error: Cannot load default config file was raised when collecting data using node-canvas.

Log details here
Traceback (most recent call last):
  File "/app/app.pyz/aioqzone/api/loginman.py", line 50, in _new_cookie
    cookie = await login.login(await login.check())
  File "/app/app.pyz/qqqr/up/__init__.py", line 107, in login
    cookie = await self.login(await self.passVC(r), StatusCode.NeedCaptcha)
  File "/app/app.pyz/qqqr/up/__init__.py", line 167, in passVC
    d = await c.verify()
  File "/app/app.pyz/qqqr/up/captcha/__init__.py", line 263, in verify
    collect = await self.tdc.get_data()
  File "/app/app.pyz/qqqr/up/captcha/vm.py", line 56, in get_data
    return unquote((await self._js.eval("window.TDC.getData(!0)")).strip())
  File "/app/app.pyz/jssupport/execjs.py", line 121, in exec
    raise JsRuntimeError(p.returncode or 1, node, removesuffix(stderr.decode()))
jssupport.exception.JsRuntimeError: Fontconfig error: Cannot load default config file

建议汉语化

因为QQ空间主要运营区域为**大陆,此仓库的使用者为汉语使用者,建议此仓库内文档和注释主语言改为中文,便于使用者理解,也有助于仓库被搜索

nickname is empty in specific enviromment

feeds3_html_more api returns empty nickname in specific environments. This can be reproducted stably on certain environments, but cannot be reproducted on environments never met this problem.

No reasons or conditions are found till now.

switch to mobile api

Qzone web api is out of date. Some apis got irregular responses:

  • emotion_cgi_msgdetail_v6 get truncated content
  • emotion_publish, emotion_delete, etc. got error code

Seems qzone web api got little maintainances nowadays. We may change to use mobile qzone apis.

refactor QQQR

Code of QQQR needs a reorganize. Current style/structure is hard to maintain and develop. This should be done along with #40 .

QQQR needs event system

We've implemented a simple event-hook system in aioqzone. QQQR needs this as well (waiting for qr, waiting for sms dynamic code, etc.). Maybe it is better to extract this system for general usage.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.