Skip to content
Snippets Groups Projects
  1. Jul 17, 2024
  2. May 18, 2024
  3. May 06, 2024
  4. Jan 27, 2024
  5. Sep 05, 2023
  6. Feb 15, 2023
  7. Sep 07, 2020
  8. May 28, 2020
  9. Oct 10, 2019
  10. Sep 26, 2019
  11. Aug 04, 2019
  12. Aug 02, 2019
  13. Apr 11, 2019
  14. Dec 12, 2018
  15. Dec 09, 2018
  16. Nov 22, 2018
    • Dan Michael O. Heggø's avatar
      Docs: Fix indentation · 5efebfad
      Dan Michael O. Heggø authored
      5efebfad
    • cpettet's avatar
      Change invocation syntax to relative Site() examples · 7f59df33
      cpettet authored
      This is what is imported at the beginning of the examples.
      This could also be done by changing the import to 'import mwclient'
      rather than 'from mwclient import Site'.
      
      Neither seems more correct but I have tried to follow
      what seems most intended.
      
      >>> from mwclient import Site
      >>> site = mwclient.Site('en.wikipedia.org')
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      NameError: name 'mwclient' is not defined
      
      vs.
      
      >>> site = Site('en.wikipedia.org')
      >>> page = site.pages['Greater guinea pig']
      >>> text = page.text()
      >>> page.exists
      True
      7f59df33
  17. Feb 28, 2018
  18. May 11, 2017
  19. Sep 22, 2016
  20. Sep 20, 2016
  21. Aug 21, 2016
  22. Jul 03, 2016
  23. Aug 23, 2015
Loading