File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 77 pattern = r'(?:User talk:)([^/\n]+)'
88 for page in pywikibot .Category (site , "Wikipedia usernames with possible policy issues" ).articles ():
99 print (str (page .latest_revision .timestamp ) + " " + page .title ())
10- if page .title () == "User:Maxim/rmuaa.js " :
10+ if page .title () == "Template:Uw-corpname " :
1111 continue
1212 m = re .search (pattern , str (page .title ()))
1313 user_raw = m .group (1 )
Original file line number Diff line number Diff line change 77 for page in pywikibot .Category (site , "Wikipedia usernames with possible policy issues" ).articles ():
88 with open ("log.txt" , 'a+' ) as f :
99 f .write (str (page .title ()) + "\n " )
10- if page .title () == "User:Maxim/rmuaa.js " :
10+ if page .title () == "Template:Uw-corpname " :
1111 continue
1212 m = re .search (pattern , str (page .title ()))
1313 user_raw = m .group (1 )
1414 user = pywikibot .User (site , user_raw )
1515 if user .isBlocked ():
16- # TODO: remove
1716 page .text = page .text .replace ("[[Category:Wikipedia usernames with possible policy issues|{{PAGENAME}}]]" ,
1817 "" )
1918 page .save (
You can’t perform that action at this time.
0 commit comments