Jump to content

Manual talk:Pywikibot

Add topic
From mediawiki.org
Latest comment: 5 days ago by Vitaly Zdanevich in topic I built a useful cli wrapper for simple file uploads

Please use one of the communication channels listed on Manual:Pywikibot/Communication rather than using this discussion board. There is very little traffic here, so it may take a while before you get a response.

12th. July not functioning

[edit]

Today, 12th. July 2025 the tool doesn't run. Can you check it? Thanks. Leonprimer (talk) 16:54, 12 July 2025 (UTC)Reply

Please file a Phabricator task to report problems with Pywikibot.  @xqt 10:06, 5 January 2026 (UTC)Reply

RegEx documentation

[edit]

I asked the Claude Haiku to create a list of regex patterns. Sharing here in case it would be helpful to include. I haven't validated them yet. I was looking for something to parse user replies to Talk pages (and later got some good input here: https://github.com/earwig/mwparserfromhell/issues/345

Available keys

[edit]
  • category: category links (namespace 14).
  • comment: HTML comments ().
  • file: file/image links (namespace 6).
  • header: section headers (== Heading ==).
  • hyperlink: external link patterns (single-bracket links).
  • interwiki: interwiki links and prefixed sitelinks.
  • invoke: module invocation patterns (e.g. {{#invoke:...}}).
  • link: general internal wikilinks ([[...]]).
  • pagelist: pagelist tag (e.g. Proofread extension).
  • property: Wikibase property inclusions ({{#property:P...}}).
  • startcolon: lines starting with a colon.
  • startspace: lines starting with a space (preformatted blocks).
  • table: wiki table blocks and HTML table tags.
  • template: nested template matching (top-level templates).


I also committed this to a fork.

https://github.com/dw31415wp-glitch/core/commit/1353673e6df0d8fab3760ba8af1f48211098fd5f


https://github.com/earwig/mwparserfromhell/issues/345 Dw31415 (talk) 17:18, 29 December 2025 (UTC)Reply

The available regex keys are create by textlib._create_default_regexes, the source can be found here. The compiled regex can be retrievied via textlib.get_regexes. But thank you for your proposal. I'll try to fetch it from your repository copy to include it to the master branch. To contribute to Pywikibot refer Manual:Pywikibot/Development. You can upload changes without Developer accoutn commit access via the Gerrit Patch Uploader. Btw. better use Phabricator tasks to report any issue like bugs, feature requests or proposals because this talk page is not on developers scope.  @xqt 10:32, 5 January 2026 (UTC)Reply

I built a useful cli wrapper for simple file uploads

[edit]

https://gitlab.com/vitaly-zdanevich/pwb_wrapper_for_simpler_uploading_to_commons

Maybe you should merge this to Pywikibot, as you wish. Vitaly Zdanevich (talk) 13:44, 9 February 2026 (UTC)Reply