Aiowiki
An asynchronous python libary to get mediawiki content
Install / Use
/learn @Gelbpunkt/AiowikiREADME
aiowiki
An asynchronous python libary to get mediawiki content
Installation
It requires Python 3.6 or above and aiohttp
pip3 install git+https://github.com/Gelbpunkt/aiowiki
Quick start
import aiowiki
wiki = aiowiki.Wiki.wikipedia("en") # We're using the alternate constructor for pre-made Wikipedia Wikis
await wiki.login("test", "pass1234") # Logging in (optional)
pages = await wiki.get_random_pages(3) # get a list of random pages
pages = await wiki.opensearch("Monty Python") # gets page objects by search
page = wiki.get_page("aiowiki") # get a specific page
print(await page.html()) # print the pure page html
print(await page.markdown()) # print the pure page markdown (wiki code)
print(await page.text()) # print the page's text (library handles filtering of the HTML)
await page.edit("That's a nice lib!") # edit the page, automatically uses the logged in user or anonymous
await wiki.close() # the Wiki object also supports a context manager (async with) to close automatically
License
Related Skills
qqbot-channel
352.0kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.6k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
352.0kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Design
Campus Second-Hand Trading Platform \- General Design Document (v5.0 \- React Architecture \- Complete Final Version)1\. System Overall Design 1.1. Project Overview This project aims t
