When I use code
from pywikiapi import wikipedia
# Connect to Telugu Wikipedia
site = wikipedia('te')
# Iterate over all query results as they are returned
# from the server, handling continuations automatically.
#
#gets entries of a category
for r in (site.query(list='cxpublishedtranslations',limit=10,format='json',utf8=1,from='en',to='te',)):
print(r)
The error is
> File "<ipython-input-12-243fed8fdae5>", line 9
> for r in (site.query(list='cxpublishedtranslations',limit=10,format='json',utf8=1,from='en',to='te',)):
> ^
> SyntaxError: invalid syntax
>
Looks like the parameter from is not being recognized
When I use code
The error is
Looks like the parameter from is not being recognized