Personal website https://benkurtovic.com/
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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

13 år sedan
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](http://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