PYTHON 14 Guest on 13th October 2020 11:39:30 PM
  1. #!/usr/bin/python3
  2. import pywikibot
  4. site = pywikibot.Site("commons", "commons")
  5. page = pywikibot.Page(site, "Commons:Requests for rights")
  6. pagetext = page.text
  7. print(pagetext)
  8. PageObject.edit(text=pagetext, bot=True, summary="Archiving request for right")

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.