Wikidata:Requests for permissions/Bot/EdwardAlexanderCrowley (flood)
- The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
- Not done @EdwardAlexanderCrowley: This request seems to be abandoned, please reopen it if that is not the case. Thanks. Mike Peel (talk) 21:54, 18 January 2022 (UTC)[reply]
EdwardAlexanderCrowley (flood) (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: EdwardAlexanderCrowley (talk • contribs • logs)
Task/s: link 1000+ pages listed in User:Qnm/list1
Code: The code below leads to [1]
import mwclient as mwc
wd = mwc.Site('www.wikidata.org', clients_useragent = UA)
wd.login(UN, PWD)
token = wd.get_token('edit', True)
wd.post('wbeditentity', format='json', token=token, new='item', errorformat='plaintext', uselang='zh-hans', assertuser='EdwardAlexanderCrowley', data='{"labels":{"zh":{"language":"zh","value":"Module:Data tables/dataM997"},"en":{"language":"en","value":"Module:data tables/dataM997"}},"sitelinks":{"zhwiktionary":{"site":"zhwiktionary","title":"Module:Data tables/dataM997"},"enwiktionary":{"site":"enwiktionary","title":"Module:data tables/dataM997"}}}', bot=1)
Function details: I copied some modules using User:CrowleyBot from enwikt to zhwikt. I need approval for linking these. Linking submodules is allowed by the policy, because Module:languages/data3/* are already linked.
If someone wants to do this for me, it's OK.
If admins request me to use CrowleyBot to do this task, then IPBE is needed, because I'm from mainland China, and only have global IPBE on the main account. --EdwardAlexanderCrowley (talk) 13:32, 20 April 2021 (UTC)[reply]
- This doesn't seem to comply with standard bot policy. Please set a user-agent that is traceable back to you and respect maxlag. Multichill (talk) 10:44, 25 April 2021 (UTC)[reply]
- User-agent is set at UA. ('EdwardAlexanderCrowley/0.0 (User:EdwardAlexanderCrowley)'). maxlag is default to 3 as in [2]. If needed, I'll use time.sleep(2). EdwardAlexanderCrowley (talk) 05:49, 26 April 2021 (UTC)[reply]