[pywikibot] Re: Newbie question: TypeError: 'NoneType' object is not iterable - on exit of pywikibot script

2024-05-31 Thread info
Hi Florian, no generator was specified. You should choose one of the pagegenerators option I guess: https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.pagegenerators.html#generator-options > HandleCommonsOnOSMBot(generator=gen_factory.getCombinedGenerator(), **options) gives just None

[pywikibot] Re: Path between a category and an article

2024-04-03 Thread info
Hi Binaris, I think you can use category_graph.py script [1] to find out the category path. Best xqt [1] https://doc.wikimedia.org/pywikibot/master/scripts/categories.html#category-graph-script > Am 03.04.2024 um 17:17 schrieb Bináris : > >  > Hi, > > given a category c and a page p, p is

[pywikibot] Re: Argument to IsRedirectPageError?

2024-04-01 Thread info
You are right Either the documentation or the implementation is wrong. I will try to find out what was really meant; maybe the compat release can give a hint. Thanks for investigating. xqt > Am 31.03.2024 um 17:34 schrieb Roy Smith : > > The docs for BasePage.get() say: > >

[pywikibot] Re: Title of the article when stopped.

2024-02-21 Thread info
e is causing my work to stop? > - > in interwiki-dumps/dragonsdogma-es.txt 126 records. > > Log: > 2024-02-19 11:02:36 interwiki.py, 1431 inpost_processing: INFO > ==Post-processing [[es:Ignitia]]== > 2024-02-19 11:02:36 interwiki.py, 1431 in

[pywikibot] Re: How to add a category to a page

2024-01-15 Thread info
textlib.replaceCategoryLinks() with add_only=True should do the job.BestxqtVon meinem iPhone gesendetAm 04.01.2024 um 13:49 schrieb John :I use a combination of getCategoryLinks() and then replaceCategoryLinks() it updates them in place, or adds them where needed.On Thu, Jan 4, 2024 at 2:58 AM

[pywikibot] Re: How to add a category to a page

2024-01-03 Thread info
Hi,to add a category to several pages, category script can be used. For implementing a function or method, its treat method can be used as templet:https://doc.wikimedia.org/pywikibot/master/_modules/scripts/category.html#CategoryAddBotYou can also use textlib for manipulating templates.Bestxqt Von

[pywikibot] Re: Parallel gets?

2023-03-27 Thread info
This is for the page_put_queue [1] which holds the pages which are saved asynchronously. To use it take asynchronous=True parameter for Page.save() [2] or BaseBot.userPut() [3] method. The later sets it if the parameter is not given but always parameter is set to True. There are other methods

[pywikibot] Re: Parallel gets?

2023-03-27 Thread info
Pywikibot uses request for io methods. I had have a look at several similar libraries with asyncio support but none of them were long term supported.It is a good advice to ensure that pages are preloaded. Anyway Pywikibot does not use asyncio (yet) but it used Threads to save pages asynchronously.

[pywikibot] Re: Huwiki has new namespaces today, Pywikibot does not handle them

2023-03-27 Thread info
Another way is to run the cache script as:pwb cache -deleteA third way is to use API_config_expiry as global option:pwb -API_config_expiry:0

[pywikibot] Re: Versionchanged

2023-03-05 Thread info
8.1.0.dev0 is still the master branch whereas 8.0.1 is the stable branch which was 8.0.0 previously xqt Von meinem iPhone gesendetAm 05.03.2023 um 15:35 schrieb Bináris : ezt írta (időpont: 2023. márc. 3., P, 18:14):It is always the current version when the change was made.But until

[pywikibot] Re: Versionchanged

2023-03-03 Thread info
It is always the current version when the change was made. Best xqt > Am 03.03.2023 um 14:46 schrieb Bináris : > >  > When you contribute something to the framework, how do you know what version > comes to docstring after versionadded or versionchanged? > > -- > Bináris >

[pywikibot] Re: Line breaking the cite templates

2023-02-27 Thread info
Hi John,good point. Pywikibot also uses mwpfh or wikitextparser for template parsing. In some situations it can be more useful to use raw data of text parsers due to its hierarchical structure e. g. to repair templates with a lexer.xqtAm 28.02.2023 um 01:41 schrieb John :I use mwparserfromhell

[pywikibot] Re: Line breaking the cite templates

2023-02-27 Thread info
I don’t know what the bot has to fix and I don’t remember for a script fixing templates.There are only a few functions and methods parsing templates and one to glue the parsing result. Maybe this can help.Bestxqt Am 27.02.2023 um 13:15 schrieb Bináris :No problem, I never used cosmetic changes,

[pywikibot] Re: Line breaking the cite templates

2023-02-27 Thread info
Don’t see the fix but cosmetic changes only for that template. Where was the problem here? Best xqt Von meinem iPhone gesendet > Am 27.02.2023 um 07:46 schrieb Bináris : > >  > Do we have a script or fix for breaking the cite templates like this? >

[pywikibot] Re: Multiple users in user-config.py?

2023-02-26 Thread info
Hi Roy,this is a global option which is handled by config.py directly by reading from sys.argv but does not remove it from that list.To remove it you can use the pwb.py wrapper like pwb

[pywikibot] Re: Checkuser

2023-02-26 Thread info
Hi,neither checkuser nor checkuserlog of checkuser extension is well documented and there are no generators implemented yet. You have to setup your own generator e.g. useing api.ListGenerator [2] e.g.  gen = api.ListGenerator(listaction='checkuserlog', total=25, site=pywikibot.Site(),

[pywikibot] Re: Multiple users in user-config.py?

2023-02-26 Thread info
Hi,renaming the password cookie file is not a good idea after Pywikibot 8.0.0 was released because each account has its own file. [1]You may have different user config files which can be used with global -config option e.g. -config:mybot_config. [2]This new global option was introduced with

[pywikibot] Re: Unable to commit

2023-02-20 Thread info
… Sorry the mail was committed by accident…Anyway I would like to recommend TortoiseGit. I’ve wrote a documentation at mediawiki wiki how to use it.Maybe we can organize an online meeting to introduce this way or I could help remote via TeamViewer. How do you find my proposals, how should we

[pywikibot] Re: Unable to commit

2023-02-20 Thread info
Hi Binaris,I am with you that gerrit is much more difficult to handle than svn. I remember that bad time after the switch and I had to make a lot of tries and errors and I was about to give up and leave the project.As we met us in Berlin decades ago I think you also was a Windows user and I

[pywikibot] Re: pywikibot.stopme()

2023-02-20 Thread info
Hi Binaris, stopme() is no longer needed. It is always called when the script terminated or if using pywikibot.sleep() with 30 seconds or more or with BaseBot.exit(). It is only useful if you run several parallel bot instances. You can call it if you have your own wait cycles or long term

[pywikibot] New Pywikibot 8 relase

2023-01-21 Thread info
Hi folks,a new stable release 78 was deployed. It can be used at PAWS as well as at toolforge and can be installed via pip, downloaded from https://pywikibot.org or updated from remote repository. What is new with it?Breaking changesPython 3.5 and 3.6.1 support has beend

[pywikibot] Re: Simplifying logging?

2023-01-10 Thread info
e just using it as a library, configures its own complicated logging structure:   o   "pywiki"   |   Level Level 11   |   Propagate OFF   |   Handler (INFO)>   |     Level INFO   |     Filter    |     Formatter fmt='%(message)s%(newline)s' datefmt=None   |   Handler (STDOUT)>   |    

[pywikibot] Re: Pywikibot documentation

2022-12-23 Thread info
Hi Bináris,yes, the documentation at dwo is 99% from docstrings and readme and other information files. The underlying markup is restructuredtext but sphinx is used to create the final documentation files; it comes with additional roles and elements for reference links, creates table of contents,

[pywikibot] Re: Page views

2022-12-18 Thread info
I don’t see a diagram there:Informace o stránce „Ivan Konstantinovič Matrosov“cs.wikipedia.orgIs it an extension?Did you mean main_authors() Page method?page — MediaWiki Pages — Pywikibot 8.0.0.dev0 documentationdoc.wikimedia.orgBestxqtAm 18.12.2022 um 08:53 schrieb Bináris :At left of articles

[pywikibot] Re: Error when trying to log in

2022-12-18 Thread info
It is 1.38.4 Am 18.12.2022 um 01:56 schrieb Bináris :What MediaWiki version uses that site? ezt írta (időpont: 2022. dec. 17., Szo, 18:11): I'm trying to get pywikibot set up for the first time. It's on a Miraheze site and I'm getting this error when I try to

[pywikibot] Re: 2FA

2022-12-17 Thread info
Hi Bináris,Pywikibot master (8.0) does support 2FA. Just login with your sysop account. You will be asked for the password and after that for the 2FA token.⚓ T186274 Enable 2FA normal

[pywikibot] Re: What's with the APISite.encodings() magic?

2022-12-11 Thread info
Hi, It is not a reimplementation of class inheritance. The API method is delegated to the Family method for its site code only e.g. site.encodings() calls site.family.encodings(site.code). Best xqt > Am 12.12.2022 um 02:50 schrieb Roy Smith : > > I've been beating my head against the wall

[pywikibot] Re: Logins

2022-11-29 Thread info
This is Windows driven where .py is associated with Python.exe which was set during installation. Von meinem iPhone gesendet > Am 29.11.2022 um 16:38 schrieb Bináris : > >  > Thank you! > How does pwb work for you without .py? > ___ > pywikibot

[pywikibot] Re: Logins

2022-11-29 Thread info
I created T324000 for cookie improvements. Best xqt > Am 28.11.2022 um 21:52 schrieb Bináris : > >  > I made a workaround so that I don't heve to log in all the time. :-) > swap.bat is: > ren other.lwp temp.lwp > ren pywikibot.lwp other.lwp > ren temp.lwp pywikibot.lwp > del temp.lwp > > So

[pywikibot] Re: pywikibot is making a mockery of my tests

2022-11-28 Thread info
Just an idea but I haven’t verified: BaseSite has a __getattr__ method defined which delegates methods to its Family class. Maybe mock.patch has a side effect which leads to that behaviour you described due to this method. To verify you could comment out this method and test again. Best xqt >

[pywikibot] Re: Logins

2022-11-28 Thread info
Thank you for this example. I’ll have a look on this issue and will try to find a solution. Best xqt Von meinem iPhone gesendet > Am 28.11.2022 um 20:38 schrieb Bináris : > >  > > Yes. BinBot is the bot account and Bináris is the admin account. The second > login throws out the previous

[pywikibot] Re: Logins

2022-11-28 Thread info
They are stored in pywikibot.lwp file in the config.datafilepath. Have you used the -user option together with login e.g. pwb -user:Foo login -all ? Best xqt > Am 28.11.2022 um 11:41 schrieb Bináris : > >  > Where are the logins stored? In compat they had an obvious directory. Now I >

[pywikibot] Re: Do I need pwb.py?

2022-11-17 Thread info
Hi Binaris,I’ll to investigate into this matter this weekend. Following some ideas:Seems the config.log variable isn’t an empty list. Refer my other may to figure it out.You 2nd example does not work because version script does not use handleargs. To use global args you have to use global options

[pywikibot] Re: Do I need pwb.py?

2022-11-16 Thread info
Hi Bináris, using the pwb.py wrapper is optional but you can call a script directly without it. There are a few advantages: 1. You don’t have to give script path where the script resides. You can give some user script paths in your user-config.py, it also searches for scripts in scripts/user

[pywikibot] Re: The bot is not working

2022-11-09 Thread info
Hi, I wasn’t able to reproduce this issue:pwb redirect do -site:wikisource:heworks as expected. Was it perhaps a temporary issue?BestxqtAm 09.11.2022 um 11:11 schrieb ישראל קלר :ERROR: Traceback (most recent call last):  File

[pywikibot] Re: How to analyze block logs?

2022-11-01 Thread info
Btw the quarry url can be passed as pagegenerators -url option:https://doc.wikimedia.org/pywikibot/stable/api_ref/pywikibot.pagegenerators.html?highlight=pagegenerators#generator-optionshttps://phabricator.wikimedia.org/T239436xqtAm 02.11.2022 um 02:57 schrieb i...@gno.de:Hi Roy,this is great.

[pywikibot] Re: How to analyze block logs?

2022-11-01 Thread info
Hi Roy,this is great. And It would be nice to have a Pywikibot interface to quarry I think.xqtAm 02.11.2022 um 02:29 schrieb i...@gno.de:Hi,I think blocks() can be used:https://doc.wikimedia.org/pywikibot/stable/api_ref/pywikibot.site.html#pywikibot.site._generators.GeneratorsMixin.blocksbut

[pywikibot] Re: How to analyze block logs?

2022-11-01 Thread info
Hi,I think blocks() can be used:https://doc.wikimedia.org/pywikibot/stable/api_ref/pywikibot.site.html#pywikibot.site._generators.GeneratorsMixin.blocksbut there is no possibility for expiry filtering and you have to do it with the query result.Maybe MySQL or SPARQL gives a way but I am not

[pywikibot] Re: FlaggedPagesGenerator

2022-10-17 Thread info
Hi Binaris, I fear that extension is not implemented yet. Flagged revisions is no longer activated on new Wikis I guess. Anyway your suggestion looks important. https://phabricator.wikimedia.org/T57081 Best xqt Von meinem iPhone gesendet > Am 17.10.2022 um 20:56 schrieb Bináris : > >  >

[pywikibot] Re: New Pywikibot 7.7 release

2022-10-12 Thread info
Hi Binaris, Yes, that is surely wrong. Current master as well as stable branch are available as nightly dump at https://pywikibot.org Thank you. Regard xqt Von meinem iPhone gesendet > Am 12.10.2022 um 08:30 schrieb Bináris : > >  > On the page

[pywikibot] New Pywikibot 7.7 release

2022-09-28 Thread info
Hi all,a new stable release 7.7 was deployed. It can be used at PAWS as well as at toolforge and can be installed via pip, downloaded from https://pywikibot.org or updated from remote repository. What is new with it?- the topmost 5 authors based on the current text proportion can be found with

[pywikibot] Re: authenticate as bot and sysop

2022-09-08 Thread info
Hi,I have shown several ways to determine the user account to be used with my previous mail. Your workarround is interesting: instead of having different directories to specify the user-config.py file it c/would be usefull to have an option like -config to specify the user config file name

[pywikibot] Re: authenticate as bot and sysop

2022-09-08 Thread info
Several methods to use multiple bot accountsDue to T71283 sysop account setting was given up with release 3.0.20200111. On the other hand you may have multiple bot accounts, e.g. onw for production system and one for test purposes. And none of them may be part of the sysop group. How can you use

[pywikibot] Re: authenticate as bot and sysop

2022-09-08 Thread info
<<< text/html; charset=utf-8: Unrecognized >>> ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

[pywikibot] Re: authenticate as bot and sysop

2022-09-08 Thread info
Sorry I cannot follow this approach. Can you explain?BestxqtVon: Johnuniq Gesendet: 08.09.2022 09:23An: Pywikibot discussion list Betreff: [pywikibot] Re: authenticate as bot and sysop > how You use different configs in the same script?In my case, I would first run a script to select which user I

[pywikibot] New Pywikibot 7.6 release

2022-08-21 Thread info
Hi all,a new stable release Pywikibot 7.6 was deployed. What is new with it?- pcmwiki, guvwikt, bjnwikt and vikidia:oc is supported- itertools.pairwise was backported from Python 3.10- a restartable GeneratorWrapper was added[1]. It is used with Eventstreams, APIGenerator, QueryGenerator,

[pywikibot] New Pywikibot 7.5 release

2022-07-22 Thread info
Hi all,a new stable release Pywikibot 7.5 was deployed. What is new with it?- blkwiki is supported- a new time module was added [1]- Fully ISO8601 and POSIX format support with Timestamp [2]- wbparsevalue API support was added [3]- harvest_template script was improved and supports time values [4]

[pywikibot] New Pywikibot 7.4 release

2022-06-27 Thread info
Hi all,a new stable release Pywikibot 7.4 was deployed yesterday. What is new with it?- the pypi package also supports built (wheel) distribution [1]- api write actions was updated- a memento module was added to fix the memento_client package [2]- Flow board topic continuation of iterating reverse

[pywikibot] New Pywikibot 7.3 release

2022-05-21 Thread info
Hi all,a new stable release Pywikibot 7.3 has been deployed yesterday. What is new with it?- kcg-wiki is supported- pagegenerators.GeneratorFactory provides an is_preloading attribute if pages are preloades. Refer [1] how to use it.- counter statistics are printed for all counters (T307834) [2]- 

[pywikibot] Re: Getting the tag of edits shown by user.contributions()

2022-05-21 Thread info
 Hi, currently you can’t see the tags because this property is not retrieved. You have to modify the APISite.usercontribs() method to get it. https://doc.wikimedia.org/pywikibot/master/_modules/pywikibot/site/_generators.html#GeneratorsMixin.usercontribs Please create a Phabricator task for

[pywikibot] Re: Adding text in predefined locations

2022-05-04 Thread info
extract_sections may be helpful here: https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.html?highlight=extract_sections#pywikibot.textlib.extract_sections Best xqt Von meinem iPhone gesendet > Am 05.05.2022 um 00:40 schrieb John : > >  > I know there was code for that in the old

[pywikibot] New Pywikibot 7.2 release

2022-04-27 Thread info
Hi all,a new stable release Pywikibot 7.2 has been deployed today.What is new with this release?Improvements:- The logging system was rewritten. All parameters except of the first are keyword only parameter now, the usage of positional arguments is deprecated. pywikibot.info() is an alias for

[pywikibot] New Pywikibot 7.1 release

2022-03-26 Thread info
Hi all,a new stable release Pywikibot 7.1 has been deployed. What is new with this release?Improvements:- guwwiki and shnwikivoyage are supported- FilePage has a new property file_is_used to determine whether a file is used on a the given site- TextExtracts extension is supported. It can be used

[pywikibot] Re: API error modification-failed Error

2022-03-07 Thread info
Hi Ugo, this is an API warning and not a Pywikibot issue. Seems the wikibase-validator-bad-prefix info message is not localised via translatewiki. I propose to file a bug at Phabricator. xqt > Am 06.03.2022 um 22:49 schrieb Ugo Chima : > >  > Hello everyone, > Please I

[pywikibot] Re: NotImplementedError: page_from_repository method

2022-02-27 Thread info
You can’t run that script on a Wikibase, you have to run it on a client. Von meinem iPhone gesendet > Am 27.02.2022 um 21:34 schrieb Ugo Chima : > >  > Thanks once again, > But what method should I use then, because I know that this happens on > wikidata so I believe it can happen external as

[pywikibot] Re: NotImplementedError: page_from_repository method

2022-02-27 Thread info
Hi Chima, your local Wiki seem to be a Wikibase and as the exception suggest the method is not defined for this site type. Best xqt > Am 26.02.2022 um 17:13 schrieb Ugo Chima : > >  > Hi Xqt > >> On Thu, Feb 24, 2022, 08:02 Ugo Chima wrote: >> Hello Xqt, >> Thank you for replying, >>

[pywikibot] Re: New Pywikibot 7 stable release

2022-02-24 Thread info
 Seems this mail hasn’t passed. xqt > Am 19.02.2022 um 18:48 >  > > > Hi Maarten, > > I've restored all removed pagegenerators functions. > https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.html#pywikibot.pagegenerators.AllpagesPageGenerator > Other functions may follow

[pywikibot] Re: NotImplementedError: page_from_repository method

2022-02-23 Thread info
Hi Chima, site:lang is not a valid site. I would expect wikidata:wikidata in the exception message. What is your command line and on which site are you running the script? Best xqt > Am 24.02.2022 um 02:35 schrieb Ugo Chima : > >  > Good morning everyone > Please anyone have any Idea why I

[pywikibot] Re: Bulk uploads to Commons using PWB and data_ingestion script. Is it possible?

2022-02-15 Thread info
there was no trouble with it and now you are prepared for the next failure  Best xqt > Am 15.02.2022 um 10:54 schrieb Ian Watt : > > Hi xqt > > Apologies. This fell off my radar. > > With Pattypan becoming available again, it meant that the familiar route to > uploading images was again

[pywikibot] Re: New Pywikibot 7 stable release

2022-02-13 Thread info
Hi Maarten, thank you for you feedback. There is the same "redundancy" in some Page methods which calls the corresponding site method and I wouldn’t drop one over the other. Page methods have a higher tier than Site methods which calls api functions and finally the comms functions.

[Pywikipedia-announce] [pywikibot] New Pywikibot 7 stable release

2022-02-12 Thread info
Hi all,a new stable release Pywikibot 7 will be deployed at the end of this month.There are a lot important points with this release, currently implemented in master branch:Python Plattform:-Pywkibot support of Python 3.5.0 - 3.5.2 will be dropped. The minimum plattformrequired is

[pywikibot] New Pywikibot 7 stable release

2022-02-12 Thread info
Hi all,a new stable release Pywikibot 7 will be deployed at the end of this month.There are a lot important points with this release, currently implemented in master branch:Python Plattform:-Pywkibot support of Python 3.5.0 - 3.5.2 will be dropped. The minimum plattformrequired is

[pywikibot] Re: pywikibot vs mwclient?

2022-02-06 Thread info
Pywikibot was developed since 2003; a rewrite was made 2013. It comes with a bulk of ready to use scripts, high level bot templates for very fast development of own bot scripts. Pywikibot has global command line options for settings, which can be used for all script through the pwb wrapper

[pywikibot] Re: Bulk uploads to Commons using PWB and data_ingestion script. Is it possible?

2022-01-29 Thread info
Hi Ian, a real test would be fine and enough for me. There are automatic tests for the code. You can copy the script from here [1]. To prevent real changes you may use the -simulate option when calling the script. Best xqt [1]

[pywikibot] Re: Bulk uploads to Commons using PWB and data_ingestion script. Is it possible?

2022-01-28 Thread info
Hi Ian, I’ve recovered this script. Are you able to review it? [1] There is a known issue due to a wrong migration from compat to core but the script should work anyway. Best xqt [1] https://gerrit.wikimedia.org/r/c/pywikibot/core/+/757889 > Am 28.01.2022 um 11:15 schrieb Ian Watt : > >

[pywikibot] Re: Bulk uploads to Commons using PWB and data_ingestion script. Is it possible?

2022-01-27 Thread info
Hi Ian, data_ingestion.py is still available but is not tested. There might be some breaking changes since 5.6 and 7.0 which can cause the script failing. Either you have to pretend the archive folder when calling the script or add the path to user_script_paths in your user-config.py [1]. You

[pywikibot] Re: Deprecation policy?

2021-12-20 Thread info
Hi folks,regarding to your contributions and comments here some thoughts:Currently Python 3.5.0+ is supported with stable version. With Pywikibot 7.0 Python version 3.5.0 - 3.5.2 are no longer supported due insufficient import support and other problems which could not be solved easily. [1] On the

[pywikibot] Re: Error on PWB

2021-12-03 Thread info
Hi Joseph, is it your private wikibase family? Perhaps it is this issue then: https://phabricator.wikimedia.org/T288724 Best xqt > Am 03.12.2021 um 17:29 schrieb Ugo Chima : > > Joseph ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org To

[pywikibot] Re: Using noreferences.py within PAWS ipynb

2021-11-29 Thread info
Hi GoEThe, I’ve seen you are importing the the NoReferencesBot but you does not use it. addReferences() is not a function but a class method. You have either to localise the framework script (or open a Phabricator task for it) or you have to subclass the bot if the behaviour is very different

[pywikibot] Re: Please help

2021-08-20 Thread info
Hi Ugo,could you please either update the current Pywikibot master which tells the installed setuptools version or use the following code snippet to get it:  from setuptools Import __version__ as v  print(v)What is your installed setuptools then?Bestxqt Von: Ugo Chima Gesendet: 20.08.2021 11:13An:

[pywikibot] Re: python pwb.py replace.py not working

2021-08-17 Thread info
I think this is already solved with https://gerrit.wikimedia.org/r/c/pywikibot/core/+/709124Anyway it is always important to Show Python and Pywikibot versions if reporting a bug.Bestxqt Von: klaus.sei...@arcor.deGesendet: 17.08.2021 10:51An: Basudev Krishna ,Pywikibot discussion list Betreff: AW:

[pywikibot] Re: EntityTypeUnknownError on Wikidata

2021-08-12 Thread info
Hi, looks like https://phabricator.wikimedia.org/T242083 and it occurred when wikibase had high traffic. Best xqt > Am 12.08.2021 um 20:26 schrieb Zoran Dori : > >  > Hi, > today my brain is doing very good job. :D > > There is a task about this. https://phabricator.wikimedia.org/T288724 >

[pywikibot] Re: Help please 

2021-07-10 Thread info
Hi, this is not a script but a package which can be used by your own script. But probably a good reason to reimplement Pywikibot compat’s spellchecker with it Best xqt > Am 10.07.2021 um 06:51 schrieb Basudev Krishna : > >  > Hi help please, > I can use all of the Mediawiki Python bot

[pywikibot] Re: ​import pywikibot

2021-06-28 Thread info
Hi, your Pywikibot looks outdated. Either setup a user-config.py like the sample here [1] or update your Pywikibot; never Version does not require it but it is recommended. Best xqt [1]

[pywikibot] Re: Replace multiple template names per page

2021-06-11 Thread info
Perhaps the doc need a hint for it? Best Xqt > Am 10.06.2021 um 12:17 schrieb MarcoAurelio : > > Hi, > >> El lun, 7 jun 2021 a las 17:43, escribió: >> >> You also can give pairs of templates with template.py I think >> >> Best >> xqt >> > > Tested that and indeed passing pairs of

[pywikibot] Re: delete.py

2021-06-11 Thread info
Either you have no ‘delete' right or you aren’t logged in or you are logged with a different user. Check it with the shell: >>> site = Pywikibot.Site() >>> site.has_right('delete') Should be True Best xqt > Am 11.06.2021 um 14:13 schrieb ישראל קלר : > >  > I sysop there. What could be the

[pywikibot] Re: Replace multiple template names per page

2021-06-07 Thread info
You also can give pairs of templates with template.py I think Best xqt > Am 07.06.2021 um 17:34 schrieb MarcoAurelio : > > Hello Bináris, > > Thanks for your reply. > > Yes, I thought first about the bash/shell file with a bunch of > template.py commands but like you said, it's not very

[pywikibot] Re: Error while transferring images with imagetransfer.py

2021-06-06 Thread info
Hi > Am 06.06.2021 um 18:34 schrieb Zoran Dori : > > Hello, > thank you very much for making the patch. > > I can't test it anymore, but it looks good to me. > > BTW, what do you think about my suggestion? > https://phabricator.wikimedia.org/T284373#7136264 > About the NoPageError? It is a

[pywikibot] Re: Error while transferring images with imagetransfer.py

2021-06-06 Thread info
Hi Zoran.I uploaded a patch which solved that issue of T284373.Can you review it?Bestxqthttps://phabricator.wikimedia.org/T284373https://gerrit.wikimedia.org/r/c/pywikibot/core/+/698322/ Von: Zoran Dori Gesendet: 05.06.2021 17:49An: Pywikibot discussion list Betreff: [pywikibot] Error while

[pywikibot] Re: Login with compat

2021-06-03 Thread info
Hi, > Am 03.06.2021 um 11:22 schrieb Bináris : > > OK, I am going to start with that, and thank you very much! > To convert my own replace.py is much easier than to add all features to > community version. > Now I have to return from far, far to understand the new concepts and being a >

[pywikibot] Re: Login with compat

2021-06-03 Thread info
Oh there are a lot of other issues too by I guess you are familiar enough with that stuff. Best xqt > Am 03.06.2021 um 11:24 schrieb Bináris : > >  > > > ezt írta (időpont: 2021. jún. 3., Cs, 11:20): >> Hi Binaris, >> >> btw compat is for Python 2 only. >> > Hi, > no problem with that,

[pywikibot] Re: Login with compat

2021-06-03 Thread info
> Am 03.06.2021 um 07:40 schrieb Bináris : > >  > > > ezt írta (időpont: 2021. jún. 2., Sze, 23:05): >> Please be aware that other csrf tokens will be removed with mw 1.37 an can >> lead the compat release to fail. > Thank you! When is 1.37 due? Current release of Wikimedia cluster is

[pywikibot] Re: Login with compat

2021-06-02 Thread info
Please be aware that other csrf tokens will be removed with mw 1.37 an can lead the compat release to fail. Best xqt > Am 02.06.2021 um 22:55 schrieb i...@gno.de: > > Hi, > > yes there is a manual about this: > > https://www.mediawiki.org/wiki/Manual:Pywikibot/compat-to-core_conversion >

[pywikibot] Re: Login with compat

2021-06-02 Thread info
Hi, yes there is a manual about this: https://www.mediawiki.org/wiki/Manual:Pywikibot/compat-to-core_conversion The compat2core script was archived in meantime but it can still be used. It also can restored to the supported scripts. Pleas also use the task noted there for any help. Best xqt

[pywikibot] Re: Login with compat

2021-06-02 Thread info
Hi Binaris, login2.py wasn’t shipped with compat. The login implementation looks like MediaWiki 1.27 and the current one has changed a lot. Probably it does not work anymore with compat. Best xqt Von meinem iPhone gesendet > Am 02.06.2021 um 07:14 schrieb Bináris : > >  > Hi John, > I

[pywikibot] Re: Login with compat

2021-06-01 Thread info
Hi Binaris, I remember there was an issue but I am not able to investigate into this matter. The compat branch is very outdated and does only support Python 2. My Python developing version is 3.9, the production system runs with 3.7 and for some reason I have also 3.5 installed which is the

[pywikibot] Re: Thank you Xqt

2021-05-10 Thread info
Hello all,thank you very much for the kind words.There are so many ideas but so less time.But some of them will become true.Here some important changes coming soon:- Async chunck Uploads was implemented, contribs by Zhuyifei1999 and InductiveLoad)- After a very long time compat's output cache is

[pywikibot] Pywikibot.6.1.0

2021-04-18 Thread info
Hi folks,a new stable release 6.1.0 was published yesterday. There are some important points with this release:Dependencies---Either mwparserfromhell or wikitextparser package are strictly recommended. They will become mandatory with the next release. Please follow the instructions

Re: [pywikibot] i18n files and pip

2021-02-28 Thread info
Solution submitted. Will upload it to pypi shortly. Thanks to Merlijn for review. Best xqt > Am 28.02.2021 um 12:18 schrieb i...@gno.de: > > I opened T275981 for it. > > Best > xqt > >>> Am 27.02.2021 um 14:27 schrieb Merlijn van Deen (valhallasw) >>> : >>> >>  >> Hi André, >> >>

Re: [pywikibot] i18n files and pip

2021-02-28 Thread info
I opened T275981 for it. Best xqt > Am 27.02.2021 um 14:27 schrieb Merlijn van Deen (valhallasw) > : > >  > Hi André, > > Looking at > https://github.com/wikimedia/pywikibot/blob/master/pywikibot/i18n.py#L6, it > sounds to me like in principe the core Pywikibot code should never call >

[pywikibot] New Pywikibot stable release 6.0

2021-02-01 Thread info
Hi folks, a new stable release 6.0 will be deployed soon. There are some important points with this release, currently implemented in master branch: Breaking changes: - Support for MediaWiki < 1.23 will been dropped after fandom wikis updated most platforms to MW 1.33. (T268979) -

Re: [pywikibot] ImageTransfer script

2020-10-12 Thread info
ll enough, as I've lost > confidence in ImageTransfer. > >> On Fri, 9 Oct 2020 at 19:19, wrote: >> >> Hi John, >> >> the bot found an api error with code uploaddisabled and the given info >> message. This is on the site side and there is nothing on py

Re: [pywikibot] ImageTransfer script

2020-10-09 Thread info
Hi John, the bot found an api error with code uploaddisabled and the given info message. This is on the site side and there is nothing on pywikibot side what can be done I guess. The deprecation warning does not care yet. Normally you should not see it by the default configuration

[pywikibot] New Pywikibot release 5.0

2020-10-04 Thread info
Hi folks, a new stable release 5.0 will be deployed soon. There are some important points with this release: - Support for MediaWiki < 1.19 has been dropped. Support for LTS 1.19 and above will be kept until fandom wikis were updated - A lot of methods and classes which are deprecated for 5

Re: [pywikibot] Contributing to pywikibot

2020-08-28 Thread info
Hi Vivek and Arshdeep Singh, your are very welcomed to contribute to pywikibot. For the first steps follow these links YiFei Zhu mentioned below. There are related links for commit access, tutorials using our gerrit code review workflow, and coding style guides. You may find some "good first

Re: [pywikibot] replaceCategoryLinks fails with “Invalid argument type '' in Page initializer: B”

2020-08-23 Thread info
Again me. The breaking change was made unintentionally in https://gerrit.wikimedia.org/r/c/pywikibot/core/+/498727/ but solved a lot of problems of mixed used with Python 2 and 3. Refer the comments on bottom of that patch for further information. Sorry for this. I would be glad if I could

Re: [pywikibot] replaceCategoryLinks fails with “Invalid argument type '' in Page initializer: B”

2020-08-23 Thread info
I meant: from __future__ import unicode_literals xqt > Am 23.08.2020 um 10:05 schrieb i...@gno.de: > >  > Digging a bit more. I guess you are still using Python 2. There was a change > made in 3.0.30190430 due to T219095 which expects unicode strings for > categoryFormat but 'B' is a str

Re: [pywikibot] replaceCategoryLinks fails with “Invalid argument type '' in Page initializer: B”

2020-08-23 Thread info
Digging a bit more. I guess you are still using Python 2. There was a change made in 3.0.30190430 due to T219095 which expects unicode strings for categoryFormat but 'B' is a str in Python 2. Either you have to use the u prefix like u'B' or you have to add this line on top of your scripts:

Re: [pywikibot] replaceCategoryLinks fails with “Invalid argument type '' in Page initializer: B”

2020-08-23 Thread info
Hi Jean-Frederic, strings are allowed for the textlib.categoryFormat. But are you trying to run pywikibot 4.0+ with Python 2? The related code line is xqt e4115af 2020-07-24 11:31:05 +0200 [diff] [blame] 1539 if isinstance(category, str) Obviously this check fails for your

Re: [pywikibot] Getting started with pywikibot

2020-08-17 Thread info
Hi Larry, there are two way to use Pywikibot as a side package: 1. add a user-config.py in your /variant folder. A minimal sample can be found at https://gerrit.wikimedia.org/r/plugins/gitiles/pywikibot/core/+/88f22977fd186d888c4d9e8cbac11d76e87bd607/user-config.py.sample 2. or set a

  1   2   >