Skip to content

Unable to query translation information using list=cxpublishedtranslations #2

@arjunaraoc

Description

@arjunaraoc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions