[pywikibot] Re: How to install in toolforge?

2022-12-28 Thread AntiCompositeNumber
You would have to make a stub app.py, . I've considered doing PEP 517 builds with Poetry on toolforge before, but didn't find a good way to automate it. So I'm sticking

[pywikibot] Re: Log in to Lingua LIbre through Wikimedia Commons via OAuth

2021-07-14 Thread AntiCompositeNumber
pywikibot supports authentication using Extension:OAuth (authenticating directly to the wiki), but I don't think it supports Extesnion:OAuthAuthentication (authenticating to another wiki). It does appear that BotPasswords are enabled on Lingua Libre

[Pywikipedia-bugs] [Maniphest] [Created] T272319: Frequent Nonce already used errors from Pywikibot scripts

2021-01-18 Thread AntiCompositeNumber
AntiCompositeNumber created this task. AntiCompositeNumber added projects: Pywikibot, Pywikibot-OAuth, MediaWiki-extensions-OAuth. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Two of my bot tasks, NoLicense <https://github.com/AntiCompositeNum

[Pywikipedia-bugs] [Maniphest] [Commented On] T266117: Frequent chunk-too-small errors

2020-10-24 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. Could not reproduce. Please provide at least the following information: - Operating system - Python environment and version (`import sys; print(sys.version)`) - Pywikibot version (`import pywikibot; print(pywikibot.__version__)`) - Relevant code

Re: [pywikibot] Pywikibot and PAWS

2020-08-19 Thread AntiCompositeNumber
ering merging them <https://public.paws.wmcloud.org/User:AntiCompositeBot/Old/Global_block_history.ipynb> shows the block log for a user across all Wikimedia sites. Were I writing this today, I'd probably use the replicas instead of the API via Pywikibot. AntiCompositeNumber On Wed, Aug 19,

Re: [pywikibot] Fwd: [Wikitech-l] Moving from Gerrit to GitLab

2020-07-29 Thread AntiCompositeNumber
Last I heard, the WMF is most likely going to proceed with switching to GitLab for CI, but that the code review interface is back to "undecided" pending further discussion. I'd encourage anyone with information about necessary features, current workflows, past challenges, potential sticking

[Pywikipedia-bugs] [Maniphest] [Commented On] T153541: page.botMayEdit should return the correct value even if the bot has not logged in.

2020-07-02 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. Because bots using OAUTH are not considered logged-in by Pywikibot, those bots will always ignore bot-specific exclusion templates. However, site.username() will return the username. page.botMayEdit should fail safe, which means that it should return

[Pywikipedia-bugs] [Maniphest] [Commented On] T254459: Large PDF upload issue

2020-06-27 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. Thumbnail generation is independent of the upload process. Thumbnails are generated on demand by Thumbor after a client request, and MediaWiki is largely uninvolved in thumbnail generation on Wikimedia. TASK DETAIL https://phabricator.wikimedia.org

Re: [pywikibot] Using the Q number to get a wikidata page

2020-06-27 Thread AntiCompositeNumber
ls': , 'descriptions': , 'aliases': , 'claims': , 'sitelinks': } >>> item.claims["P31"][0].getTarget() ItemPage('Q5') I couldn't get pywikibot.ItemPage.fromPage to work properly, but it looks like that is related to <https://phabricator.wikimedia.org/T242081>. AntiComposite

[Pywikipedia-bugs] [Maniphest] [Updated] T254459: Large PDF upload issue

2020-06-13 Thread AntiCompositeNumber
AntiCompositeNumber edited projects, added SRE-swift-storage, MediaWiki-File-management; removed Pywikibot. AntiCompositeNumber added a comment. This issue, at least the 503s, is reproducible with Special:Upload (not just the API). Request from *** via cp1085 frontend, Varnish XID

Re: [pywikibot] Searching the list archives

2020-06-04 Thread AntiCompositeNumber
Not really. Search engine indexing is disabled by default for Wikimedia mailing list archives, and GNU Mailman does not provide a search interface. My next thought would be Gmane, but they don't provide a web interface anymore and I don't know if they archive this list. That leaves you with `curl

Re: [pywikibot] Preventing warning instantiated using different code "en"

2020-05-21 Thread AntiCompositeNumber
Can you link to the site you are using, and provide the Pywikibot family configuration? AntiCompositeNumber On Thu, May 21, 2020 at 11:29 AM John Bray wrote: > > How do I get rid of the listpages warning > > WARNING: /home/fancyclopedia/pywikibot/core/pywikibot/pagegener

[Pywikipedia-bugs] [Maniphest] [Commented On] T250939: pywikibot login failed

2020-04-23 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. Did you type the password correctly then? Are you using the account password or a BotPassword? TASK DETAIL https://phabricator.wikimedia.org/T250939 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences

[Pywikipedia-bugs] [Maniphest] [Commented On] T250711: Add PEP 561 type stubs to Pywikibot

2020-04-21 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. | Stub files| Inline annotations

[Pywikipedia-bugs] [Maniphest] [Commented On] T250711: Add PEP 561 type stubs to Pywikibot

2020-04-21 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. That's a benefit of using stub files instead of inline annotations: the runtime python version is irrelevant. The correct syntax for a valid stub file is python 3.6+ inline annotations, and they'll work for python2 and python3 code. There are some

[Pywikipedia-bugs] [Maniphest] [Created] T250711: Add PEP 561 type stubs to Pywikibot

2020-04-20 Thread AntiCompositeNumber
AntiCompositeNumber created this task. AntiCompositeNumber added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Pywikibot's docstrings currently include a lot of type information about the inputs and outputs of functions. However

[Pywikipedia-bugs] [Maniphest] [Commented On] T67262: ns parameter of Page object and/or defaultnamespace of Link object should force the namespace

2020-04-14 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. Silently ignoring the namespace parameter causes problems. I'm writing a script that pulls results from a database query, passing page_namespace and page_title to the page constructor. This bug caused an issue when it came to a page that had a namespace

[Pywikipedia-bugs] [Maniphest] [Commented On] T249565: Wikidata's wb_items_per_site table has suddenly disappeared, creating DBQueryErrors on page views

2020-04-09 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. It will be done automatically, eventually. To speed up the process on a particular wiki, something like https://en.wikipedia.org/wiki/User:Joe%27s_Null_Bot or pywikibot's touch.py could be used, subject to local bot policies. TASK DETAIL https

Re: [pywikibot] What's up with the stupid requests warning?

2020-03-30 Thread AntiCompositeNumber
nd 2.20.1, including at least one (https://nvd.nist.gov/vuln/detail/CVE-2018-18074) with a CVSS score of 9.8 out of 10 (Critical) that could allow your credentials to be transmitted in plaintext. > What's the point of this? To get you to stop using an insecure, out-of-date dependency. AntiCom

[Pywikipedia-bugs] [Maniphest] [Updated] T245374: WMFTimeoutException on non-existent files

2020-02-17 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. The code I used: #!/bin/env python3 import pywikibot import logging logging.basicConfig(filename="test.log", level=logging.DEBUG) site = pywikibot.Site("commons", "commons") ai = site.a

[Pywikipedia-bugs] [Maniphest] [Commented On] T245374: WMFTimeoutException on non-existent files

2020-02-16 Thread AntiCompositeNumber
AntiCompositeNumber added a comment. The file that got skipped is a red herring, I think. Something about the API query is more expensive than expected. With a gailimit=500, I get a timeout almost every time. Between 100 and 500, I sometimes get a response, sometimes a timeout

Re: [pywikibot] Throttling for minutes?

2020-01-31 Thread AntiCompositeNumber
https://phabricator.wikimedia.org/T243701 On Fri, Jan 31, 2020 at 10:01 AM Albert Villanova del Moral wrote: > > Hello, > > Have you finally created a ticket for this issue? It is very annoying: > sometimes, more than 30 minutes "sleeping". > > Regards, > Albert. > > Albert VILLANOVA DEL MORAL