User talk:Zhuyifei1999

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

{{#useliquidthreads:1}}

This is a Wikimedia Commons user talk page.

This is not an article, file or the talk page of an article or file. If you find this page on any site other than the Wikimedia Commons you are viewing a mirror site. Be aware that the page may be outdated and that the user to whom this talk page belongs may have no personal affiliation with any site other than the Wikimedia Commons itself. The original page is located at https://commons.wikimedia.org/wiki/User_talk:Zhuyifei1999.

This is the user talk page of Zhuyifei1999, where you can send messages and comments to Zhuyifei1999.
  • Please sign and date your entries by clicking on the appropriate button or by typing four tildes (~~~~) at the end.
  • Put new text under old text.
  • New to Wikimedia Commons? Welcome! Ask questions, get answers as soon as possible.
  • Click here to start a new topic.

বাংলা | български | čeština | Deutsch | Deutsch (Sie-Form)‎ | English | español | français | hrvatski | italiano | 한국어 | മലയാളം | português | русский | sicilianu | 中文 | +/−

  • Be polite.
  • Be friendly.
  • Assume good faith.
  • No personal attacks.


SignBot

https://commons.wikimedia.org/w/index.php?title=User_talk:Guanaco&diff=324841859&oldid=323520210

Should have been signed I think. - Alexis Jazz ping plz 13:28, 21 October 2018 (UTC)

I think the bot just died. Restarted --Zhuyifei1999 (talk) 16:23, 21 October 2018 (UTC)
https://commons.wikimedia.org/w/index.php?title=User_talk:Vermont&diff=325044125&oldid=325044109
Double signature.. Not so practical when dealing with vandals. - Alexis Jazz ping plz 22:14, 22 October 2018 (UTC)
Hmm. Shall I just ignore all those with an 'Undo' tag? --Zhuyifei1999 (talk) 23:02, 22 October 2018 (UTC)
I see no downside. - Alexis Jazz ping plz 20:43, 23 October 2018 (UTC)
Weird, eventstreams data don't seem to include tags:
{u'bot': False,
 u'comment': u'Undo revision 325142475 by [[Special:Contributions/Zhuyifei1999|Zhuyifei1999]] ([[User talk:Zhuyifei1999|talk]])',
 u'id': 1150800646,
 u'length': {u'new': 59, u'old': 54},
 u'meta': {u'domain': u'commons.wikimedia.org',
           u'dt': u'2018-10-23T21:25:39+00:00',
           u'id': u'309c743a-d70a-11e8-84f4-141877613bad',
           u'offset': 1150685733,
           u'partition': 0,
           u'request_id': u'40cfe01e-38fa-4854-8d96-b354506b4a71',
           u'schema_uri': u'mediawiki/recentchange/2',
           u'topic': u'eqiad.mediawiki.recentchange',
           u'uri': u'https://commons.wikimedia.org/wiki/Commons:Sandbox'},
 u'minor': True,
 u'namespace': 4,
 u'parsedcomment': u'Undo revision 325142475 by <a href="/wiki/Special:Contributions/Zhuyifei1999" title="Special:Contributions/Zhuyifei1999">Zhuyifei1999</a> (<a href="/wiki/User_talk:Zhuyifei1999" title="User talk:Zhuyifei1999">talk</a>)',
 u'patrolled': True,
 u'revision': {u'new': 325142490, u'old': 325142475},
 u'server_name': u'commons.wikimedia.org',
 u'server_script_path': u'/w',
 u'server_url': u'https://commons.wikimedia.org',
 u'timestamp': 1540329939,
 u'title': u'Commons:Sandbox',
 u'type': u'edit',
 u'user': u'Zhuyifei1999',
 u'wiki': u'commonswiki'}
I'll find to find an API that shows the tags. --Zhuyifei1999 (talk) 21:35, 23 October 2018 (UTC)
>>> list(pywikibot.Page(pywikibot.Site(), 'Commons:Sandbox').revisions(total=10))[1]
{'comment': u'Undo revision 325142475 by [[Special:Contributions/Zhuyifei1999|Zhuyifei1999]] ([[User talk:Zhuyifei1999|talk]])', '_sha1': u'97e94487c0452b48055cfc5e035ba11a9db35b2d', 'text': None, 'revid': 325142490, 'anon': False, 'user': u'Zhuyifei1999', 'rollbacktoken': None, 'timestamp': Timestamp(2018, 10, 23, 21, 25, 39), '_content_model': u'wikitext', '_parent_id': 325142475, 'minor': True}
 :( --Zhuyifei1999 (talk) 23:01, 23 October 2018 (UTC)
You could go by the edit comment, it's not perfect I know.. - Alexis Jazz ping plz 23:07, 23 October 2018 (UTC)
I got this:
>>> def get_tags(page, revision):
...     req = page.site._simple_request(
...         action='query',
...         prop='revisions',
...         titles=page,
...         rvprop='tags',
...         rvstartid=revision.revid,
...         rvendid=revision.revid,
...         rvlimit=1
...     )
...     try:
...         res = req.submit()
...     except Exception as e:
...         pywikibot.exception(e)
...         return []
...     else:
...         p = res['query']['pages']
...         if not p:
...             return []
...         r = p[p.keys()[0]]['revisions']
...         if not r:
...             return []
...         return r[0]['tags']
... 
>>> p = pywikibot.Page(pywikibot.Site(), 'Commons:Sandbox')
>>> r = list(p.revisions(total=10))[1]
>>> p, r
(Page(Commons:Sandbox), {'comment': u'Undo revision 325142475 by [[Special:Contributions/Zhuyifei1999|Zhuyifei1999]] ([[User talk:Zhuyifei1999|talk]])', '_sha1': u'97e94487c0452b48055cfc5e035ba11a9db35b2d', 'text': None, 'revid': 325142490, 'anon': False, 'user': u'Zhuyifei1999', 'rollbacktoken': None, 'timestamp': Timestamp(2018, 10, 23, 21, 25, 39), '_content_model': u'wikitext', '_parent_id': 325142475, 'minor': True})
>>> get_tags(p, r)
[u'mw-undo']
Gotta call the MediaWiki API manually. It sucks but should work reliably. --Zhuyifei1999 (talk) 23:19, 23 October 2018 (UTC)

┌───────────────────────┘
✓ Done [1] seems to work. Please tell if not. --Zhuyifei1999 (talk) 23:36, 23 October 2018 (UTC)

Thanks. Atm I guess SignBot dozed off again?[2] - Alexis Jazz ping plz 09:13, 28 October 2018 (UTC)
Restarted. The self-restarting code was triggered, but idk what happened later --Zhuyifei1999 (talk) 14:20, 28 October 2018 (UTC)
Could edits like [3] also be excluded? - Alexis Jazz ping plz 07:01, 8 November 2018 (UTC)
What is the criteria you are proposing? --Zhuyifei1999 (talk) 07:37, 8 November 2018 (UTC)
"Nominating for deletion" summary. - Alexis Jazz ping plz 08:26, 8 November 2018 (UTC)
I don't think that is a good idea, no. What if someone edits with a summary of something like 'Nominating for deletion is what they did'? What if the gadget changes to use a different summary? What if another exception should be added like 'Taging for speedy deletion'?
I'm not inclined to code all the minor exceptions into the bot, unless they happen a lot, or is very generic. --Zhuyifei1999 (talk) 15:45, 8 November 2018 (UTC)
What is a lot? I think 0.75% of all SignBot edits is quite a bit. [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32]
A few are not vandalism, but none of them should have been signed. - Alexis Jazz ping plz 20:52, 8 November 2018 (UTC)
User:SignBot/exclude_regex exists. I'm not going to use edit comments. --Zhuyifei1999 (talk) 23:33, 8 November 2018 (UTC)
Thanks, I forgot about that. Added. - Alexis Jazz ping plz 00:32, 9 November 2018 (UTC)
https://commons.wikimedia.org/w/index.php?title=User_talk:Jcb&diff=prev&oldid=327410596
Not sure why that wasn't signed. - Alexis Jazz ping plz 01:01, 12 November 2018 (UTC)
[[commons:User talk:Jcb]]: Handling
@@ -185,0 +186,4 @@ ***
+  ***
+ == Seeing a wrong thing  == ***
+  ***
+ [[User:MaterialScientist|MaterialScientist]] blocked user [[User:CottoHottoLotto|CottoHottoLotto]] indefinitely just for 1 edit that doesn't involve swear words, but might be inappropriate or vandalism but this user has only made 1 edit. If you find the block wrong or is wrong, please unblock this user. ***

[[commons:User talk:Jcb]]: Waiting
[[commons:Commons:Deletion requests/File:Arthur Schnitzler (1862–1931). Sein letztes Porträt von Wilhelm Victor Krausz (1878–1959).jpg]]: Handling
[[commons:Commons:Deletion requests/File:Arthur Schnitzler (1862–1931). Sein letztes Porträt von Wilhelm Victor Krausz (1878–1959).jpg]]: [[commons:User:Walter Anton]] opted-out
[[commons:User talk:Jcb]]: Handling
[[commons:Commons:Copyright rules by territory/Tanzania-Tanganyika]]: Handling
@@ -189 +189 @@ ***
- [[User:MaterialScientist|MaterialScientist]] blocked user [[User:CottoHottoLotto|CottoHottoLotto]] indefinitely just for 1 edit that doesn't involve swear words, but might be inappropriate or vandalism but this user has only made 1 edit. If you find the block wrong or is wrong, please unblock this user. ***
+ [[User:Materialscientist|Materialscientist]] blocked user [[User:CottoHottoLotto|CottoHottoLotto]] indefinitely just for 1 edit that doesn't involve swear words, but might be inappropriate or vandalism but this user has only made 1 edit. If you find the block wrong or is wrong, please unblock this user. ***

[[commons:User talk:Jcb]]: No inserts
[[commons:Commons:Copyright rules by territory/Tanzania-Tanganyika]]: Not a discussion
[[commons:User talk:Jcb]]: Line no longer found, probably signed
--Zhuyifei1999 (talk) 02:50, 12 November 2018 (UTC)

Tech News: 2018-45

17:29, 5 November 2018 (UTC)

Tech News: 2018-46

19:21, 12 November 2018 (UTC)