Topic on Manual talk:Pywikibot/listpages.py

Jump to navigation Jump to search
Gamren (talkcontribs)

I wanted a list of all entries in wt:Category:Danish verbs that end in "s". I navigated to ...\pywikibot\core_stable and typed

py pwb.py listpages -titleregex:'.{2,}s' -cat:Danish verbs

the entries I do get are neither in the category nor end with "s". I got two warnings:

...\data\api.py:282: UserWarning: Unexpected overlap between action and query submodules: frozenset({'readinglists'})

...\family.py:930: FamilyMaintenanceWarning: Family name wikimediachapter does not match family module name wikimedia

I am quite able to use replace.py ([https://en.wiktionary.org/w/index.php?title=User:Gamren&diff=48437681&oldid=48400609]). Please tell me if more information is needed.

User:Octahedron80?__~~~~
Octahedron80 (talkcontribs)

How about this:

listpages -titleregex:"s$" -cat:"Danish verbs"

Do not forget quotes. For other messages, I don't know.

PS. You may need to add -ns:0 to filter only main namespace.

Gamren (talkcontribs)

Thank you for answering. That did succeed in filtering out entries that don't end in "s", but it still doesn't care about the category. I tried both with and without quotes around "Danish verbs".__~~~~

Octahedron80 (talkcontribs)

Did you set family to wiktionary and lang to en yet? (or mylang in user-config.py) I tried my answer on PAWS and it had no problem.

Gamren (talkcontribs)

Yes I did, and the articles I was given were from en.wikt.__~~~~

Octahedron80 (talkcontribs)

You may want to try on this: https://paws.wmflabs.org

After log in then make a new terminal. You can start command with pwb.py.

In my opinion, your pywikibot may be out of date, or misconfigured.

Reply to "Parameters not obeyed?"