This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
import re | |
import pywikibot | |
import mwparserfromhell | |
from pywikibot.exceptions import LockedPageError, PageSaveRelatedError | |
def writeLine(file_path, content): | |
with open(file_path, 'a', encoding='utf-8') as file: | |
file.write(content + '\n') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var BingKey = '168.....4'; | |
var BingToken = 'VOf0k-....-mKd'; | |
var IID = "&IID=translator.5026"; | |
function serviceHeader() { | |
return new ServiceHeader(5, "Microsoft", "Microsoft Translator is a cloud service that translates between 60+ languages." + Const.NL2 + serviceHost() + "/translator/" + Const.NL2 + "\u00a9 2021 Microsoft", Capability.TRANSLATE | Capability.DETECT_LANGUAGE) | |
} | |
function serviceHost(a, b, c) { | |
return "https://" + ("cn" === Options.PreferredDomain || "cn" === Options.GoogleDomain ? "cn.bing.com": "www.bing.com") | |
} | |
function serviceLink(a, b, c) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
<title>中华民国现代名人录 中英文版_图书搜索</title> | |
<dl> | |
<dt>中华民国现代名人录 中英文版</dt> | |
<input type="hidden" id="dxid" value="000030092819" /> | |
<dd><span>作 者</span> :<a href="/search?sw=%E4%B8%AD%E5%9B%BD%E5%90%8D%E4%BA%BA%E4%BC%A0%E8%AE%B0%E4%B8%AD%E5%BF%83&Field=2&channel=search&ecode=UTF-8">中国名人传记中心</a>编印 </dd> | |
<dd><span>出版发行 : </span> | |
亚太国际出版事业有限公司 , 1982.06 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"request": [ | |
{ | |
"enable": 0, | |
"name": "zhwp with enwp 1", | |
"ruleType": "redirect", | |
"matchType": "regexp", | |
"pattern": "(https?:\\/\\/)zh(\\.m)?(\\.wikipedia\\.org)", | |
"exclude": "", | |
"isFunction": false, |