import pywikibot
site = pywikibot.Site('tt', 'wikipedia')
site
APISite("tt", "wikipedia")
ls
Untitled.ipynb
bash-4.3$ pwb.py listpages -lang:en -weblink:"yünältü"
  File "<ipython-input-5-cbed7797a024>", line 1
    bash-4.3$ pwb.py listpages -lang:en -weblink:"yünältü"
            ^
SyntaxError: invalid syntax
bash-4.3$ pwb.py listpages -lang:tt -weblink:"yünältü"
  File "<ipython-input-6-14f24da83b57>", line 1
    bash-4.3$ pwb.py listpages -lang:tt -weblink:"yünältü"
            ^
SyntaxError: invalid syntax
replace.py
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-7-57b182530fe2> in <module>()
----> 1 replace.py

NameError: name 'replace' is not defined
replace
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-8-dd96085478c3> in <module>()
----> 1 replace

NameError: name 'replace' is not defined
page.text
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-9-44c90f094352> in <module>()
----> 1 page.text

NameError: name 'page' is not defined