MediaWiki API 结果

这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。

指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json

参见完整文档,或API帮助以获取更多信息。

{
    "batchcomplete": "",
    "continue": {
        "lecontinue": "20260301055057|43",
        "continue": "-||"
    },
    "query": {
        "logevents": [
            {
                "logid": 53,
                "ns": 14,
                "title": "\u5206\u7c7b:Vps",
                "pageid": 1503,
                "logpage": 1503,
                "revid": 2100,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Evan",
                "timestamp": "2026-04-19T04:05:13Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201cvps\u201d"
            },
            {
                "logid": 52,
                "ns": 0,
                "title": "How to stop these bots",
                "pageid": 1502,
                "logpage": 1502,
                "revid": 2097,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Evan",
                "timestamp": "2026-04-19T03:12:31Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c<pre>  docker logs mediawiki --tail 50 172.18.0.1 - - [19/Apr/2026:02:51:35 +0000] \"GET /index.php?dir=prev&offset=20240308004504&target=Evan&title=%E7%89%B9%E6%AE%8A:%E7%94%A8%E6%88%B7%E8%B4%A1%E7%8C%AE/Evan HTTP/1.1\" 200 14233 \"http://wiki.linuxsa.org/index.php?limit=50&offset=20240308212019&target=Evan&title=%E7%89%B9%E6%AE%8A:%E7%94%A8%E6%88%B7%E8%B4%A1%E7%8C%AE/Evan\" \"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.3; +https://opena\u2026\u201d"
            },
            {
                "logid": 51,
                "ns": 0,
                "title": "ASG tags",
                "pageid": 1501,
                "logpage": 1501,
                "revid": 2086,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Evan",
                "timestamp": "2026-04-15T14:23:55Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c<pre>   import boto3 from datetime import datetime  autoscaling = boto3.client('autoscaling')  # ===== \u914d\u7f6e\u533a ===== ASG_NAMES = [     'asg-prod-web',     'asg-prod-api',     'asg-canary' ]  TAG_KEY = 'DailyTag' TAG_VALUE = datetime.now().strftime('%Y-%m-%d')  #  PROPAGATE_AT_LAUNCH = True   def get_asg_tag(asg_name, key):     \"\"\"\u83b7\u53d6 ASG \u5f53\u524d Tag \u503c\"\"\"     try:         response = autoscaling.describe_auto_scaling_groups(             AutoScalingGroupName\u2026\u201d"
            },
            {
                "logid": 50,
                "ns": 0,
                "title": "Aws oracle",
                "pageid": 1500,
                "logpage": 1500,
                "revid": 2074,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Evan",
                "timestamp": "2026-04-13T07:01:00Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201cAmazon RDS for Oracle + Multi-AZ\uff08\u6709 standby instance\uff09  <pre> aws rds reboot-db-instance \\   --db-instance-identifier mydb \\   --force-failover    #check AZ aws rds describe-db-instances \\   --db-instance-identifier mydb \\   --query \"DBInstances[0].MultiAZ\"  </pre>\u201d"
            },
            {
                "logid": 49,
                "ns": 14,
                "title": "\u5206\u7c7b:Ops",
                "pageid": 1499,
                "logpage": 1499,
                "revid": 2027,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Evan",
                "timestamp": "2026-04-01T02:02:17Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201cops\u201d"
            },
            {
                "logid": 48,
                "ns": 14,
                "title": "\u5206\u7c7b:Desktop",
                "pageid": 1498,
                "logpage": 1498,
                "revid": 2026,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Evan",
                "timestamp": "2026-04-01T02:01:38Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201cdesktop\u201d"
            },
            {
                "logid": 47,
                "ns": 0,
                "title": "Aurora PG13 to PG14 Migration",
                "pageid": 1497,
                "logpage": 1497,
                "revid": 2024,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Evan",
                "timestamp": "2026-03-31T15:52:14Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c  =\u56de\u6eda\u65b9\u6848= <pre> \u80fd\u4ece\u5feb\u7167\u6062\u590d\uff1a      RDS \u2192 \u5feb\u7167 \u2192 \u9009\u4e2d\u5347\u7ea7\u524d\u7684\u5feb\u7167     \u6062\u590d\u4e3a\u65b0\u5b9e\u4f8b\uff08\u6216\u8986\u76d6\u539f\u5b9e\u4f8b\uff09     \u6062\u590d\u540e\u7248\u672c\u56de\u5230 PG13  aws cli aws rds restore-db-instance-from-db-snapshot \\   --db-instance-identifier YOUR_DB_NAME_RESTORE \\   --db-snapshot-identifier before-pg14-upgrade \\   --region ap-east-1  </pre>\u201d"
            },
            {
                "logid": 46,
                "ns": 0,
                "title": "2026plan",
                "pageid": 1496,
                "logpage": 1496,
                "revid": 2006,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Evan",
                "timestamp": "2026-03-23T14:12:14Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c=english=  ==write==  ==read== book   ==spoken english== lesson  and  vlog   =aws=  =\u5b66\u5386=\u201d"
            },
            {
                "logid": 45,
                "ns": 0,
                "title": "Python2026",
                "pageid": 1495,
                "logpage": 1495,
                "revid": 1970,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Evan",
                "timestamp": "2026-03-03T15:21:04Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201c<pre> \u597d\u7684\uff01\u7ed9\u4f60\u6bcf\u5929\u90fd\u505a\u6210\u8be6\u7ec6\u7684 step-by-step \u8ba1\u5212\u3002  ---  ## Day 1 \u2014 \u5b57\u7b26\u4e32\u64cd\u4f5c\uff0860-90\u5206\u949f\uff09  ### \u7b2c\u4e00\u6b65\uff1a\u770b\u8fd9\u4e9b\u64cd\u4f5c\uff0c\u6bcf\u4e2a\u81ea\u5df1\u624b\u6253\u4e00\u904d\uff0820\u5206\u949f\uff09 ```python s = \"Hello World\"  # \u57fa\u7840\u64cd\u4f5c print(s[::-1])           # \u53cd\u8f6c \u2192 \"dlroW olleH\" print(s.upper())         # \u5168\u5927\u5199 print(s.lower())         # \u5168\u5c0f\u5199 print(s.strip())         # \u53bb\u9996\u5c3e\u7a7a\u683c print(s.split(\" \"))      # \u5206\u5272 \u2192 [\"Hello\", \"World\"]\u2026\u201d"
            },
            {
                "logid": 44,
                "ns": 14,
                "title": "\u5206\u7c7b:\u751f\u6d3b\u4e0e\u60c5\u611f",
                "pageid": 1494,
                "logpage": 1494,
                "revid": 1962,
                "params": {},
                "type": "create",
                "action": "create",
                "user": "Evan",
                "timestamp": "2026-03-01T09:27:02Z",
                "comment": "\u521b\u5efa\u9875\u9762\uff0c\u5185\u5bb9\u4e3a\u201clife\u201d"
            }
        ]
    }
}