Skip to main content

小鸡词典API

Project description

jikipedia_api

注意:该项目还在开发完善中,有Bug欢迎反馈

相关页面导航栏

小鸡词典 Jikipedia
作者主页 @Bug鸡
Github项目

做了些什么?

互动类

  • 签到
  • 收藏
  • 点赞
  • 评论
  • 关注

数据类

  • 生成XID
  • 获取XID
  • 加密XID
  • 解密XID
  • Token获取
  • 被阅读、点赞的数据
  • 个人信息
  • 关注(者)
  • 粉丝(者)
  • 词条内容
  • 词条编写者
  • 搜索栏的推荐

创作类

  • 词条
  • 杂谈

活动类

  • 恶魔鸡翻译器

食用教程

安装

pip install jikipedia-api

import

from jikipedia import Jikipedia

如果出现ImportError,请检查是否安装了requests、json、execjs。

初始化

jikipedia = Jikipedia(phone=12345678901, password='123456')

phone 是 11 位手机号,password 是 密码。

生成明文XID

xid = jikipedia.generate_plaintext_xid()

xid 为 str 类型,可以直接使用。

Token获取

token = jikipedia.get_token()

token 为 str 类型,可以直接使用。

恶魔鸡翻译器

jikipedia.emoji('你好')

参数必须为 str 类型,返回值为 str 类型,即翻译之后的内容。

搜索栏的推荐

jikipedia.get_search_recommend()

返回值为 dict 类型,即搜索栏的推荐。

Key(键) 类型 释义
phrase str 词条名称
placeholder str 搜索栏现实的文案

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jikipedia-0.0.6rc0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jikipedia-0.0.6rc0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file jikipedia-0.0.6rc0.tar.gz.

File metadata

  • Download URL: jikipedia-0.0.6rc0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.10.1

File hashes

Hashes for jikipedia-0.0.6rc0.tar.gz
Algorithm Hash digest
SHA256 9596c9780805c8e21ca483d1c52ede9e350c12f967aa9703f8c9ef9037f2fafd
MD5 96b0baaa3aebfe9a166616fa05ed158b
BLAKE2b-256 83b42ccf012addfd7034be4b9c1848df2f7b4644fd1c8a212e5b0c705e922f9a

See more details on using hashes here.

File details

Details for the file jikipedia-0.0.6rc0-py3-none-any.whl.

File metadata

  • Download URL: jikipedia-0.0.6rc0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.10.1

File hashes

Hashes for jikipedia-0.0.6rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 adf8e6c0998924ae3709017dd557f494c651084375cee80c24c9dae207fcc5bc
MD5 5f5291f2015c36c0ae2bf4082f7f6d50
BLAKE2b-256 21c5f78290a9ebd6cf56e9a599b3b07d2f9edbd22d4a8c573fc03c477114797e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page