Personal website https://benkurtovic.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2011-08-23-earwigbot-progress-page-editing.md 650 B

13 years ago
13 years ago
13 years ago
12345678910111213141516171819202122232425262728
  1. ---
  2. layout: post
  3. title: EarwigBot Progress: Page Editing
  4. description: Exactly what it says on the tin.
  5. ---
  6. Because of [this](http://git.io/Nw-rLQ), doing this:
  7. {% highlight pycon %}
  8. >>> import wiki
  9. >>> site = wiki.get_site()
  10. >>> page = site.get_page("User:EarwigBot/Sandbox")
  11. >>> page.edit("I can has content?", "BOT: Testing new framework", minor=True)
  12. >>>
  13. {% endhighlight %}
  14. ...produces
  15. [this](//en.wikipedia.org/w/index.php?title=User%3AEarwigBot%2FSandbox&diff=prev&oldid=446401978).
  16. Clearly a MASSIVE DEVELOPMENT.
  17. After 5,800 lines of code, 54 files, and over 200 commits, EarwigBot can
  18. actually edit Wikipedia!
  19. Yay!
  20. : —earwig