pandada8 / araneae Goto Github PK
View Code? Open in Web Editor NEWA wiki bot finding untranslated information, written in python3, https://bbs.archlinuxcn.org/viewtopic.php?id=3406
A wiki bot finding untranslated information, written in python3, https://bbs.archlinuxcn.org/viewtopic.php?id=3406
e.g.:
from . import main
另外 raise SystemExit
是怎么回事……为什么不用 sys.exit
呢?
通过这个API调用
api
得到的结果是
{
"warnings": {
"info": {
"*": "The intoken parameter has been deprecated.\nAction 'edit' is not allowed for the current user"
}
},
"query": {
"normalized": [
{
"from": "Main_page_(\u7b80\u4f53\u4e2d\u6587)",
"to": "Main page (\u7b80\u4f53\u4e2d\u6587)"
}
],
"pages": {
"1513": {
"pageid": 1513,
"ns": 0,
"title": "Main page (\u7b80\u4f53\u4e2d\u6587)",
"contentmodel": "wikitext",
"pagelanguage": "en",
"touched": "2015-09-02T09:54:02Z",
"lastrevid": 391805,
"length": 3721,
"starttimestamp": "2015-09-12T03:25:48Z",
"revisions": [
{
"timestamp": "2015-08-19T17:29:43Z"
}
]
}
}
}
}
可以看到touched和revisions里的timstamp不同,revisions里的timestamp跟页面上的last modified time是一样的。而touched比较新。
关于touched:https://www.mediawiki.org/wiki/Manual:Page_table#page_touched
关于revisions里的timestamp:https://www.mediawiki.org/wiki/API:Edit
不然用户还得自己研究怎么安装、怎么用。
currently we judge by title, if a page title ends with (简体中文)
, then it's translated version of some page.
the arch wiki don't use the page's lang attr, so all page are called "en" version
I don't want to fetch every post, so let's make it simple
Be permissive.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.