Personal website https://benkurtovic.com/
25개 이상의 토픽을 선택하실 수 없습니다. 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 649 B

13 년 전
13 년 전
13 년 전
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