This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 30 | ← | Archive 32 | Archive 33 | Archive 34 |
I rcently discussed AWB General Fixes (Genfixes) removing spaces before HTML (i.e. invisible) comments with Neils51 on his talk page. We agreed to disagree. If I understand Neils51 (an expert on AWB) right, he seems to believe that Genfixes in this case does a valid edit, while I (a lesser editor) believe it does wrong. He nevertheless suggested I should discuss it here to obtain consensus.
Genfixes seems to automatically remove all spaces placed immediately before HTML comments. It seems to assume that spaces before such comments result in unwanted white-space. Indeed MOS:COMMENT advises to check for unwanted whitespace when adding HTML comments. This may happen under some circumstances but not always.
Help:Whitespace (I thank User:1TWO3Writer, who pointed me to this page) recommends to avoid all whitespace (in particular spaces) before an HTML comment. It looks as if Genspaces implements that recommendation, but as a HELP is not MOS, this is compulsory.
In Antoine Hamilton I added HTML comments on some of the Help:List-defined references. For example, I started a definition of a citation from Corp's article on Antoine Hamilton in the Oxford Dictionary of National Biography in a line reading:
<ref name=Corp2004a766lc38> <!-- Anthony Hamilton, ODNB -->
Running Genfixes changed this to:
<ref name=Corp2004a766lc38><!-- Anthony Hamilton, ODNB -->
removing the space. I find that this edit makes the code less readable. The space does not create an unwanted whitespace in the text.
WP:AWBRULES prescribes "You are expected to review every edit, just as if you were making an edit using Wikipedia's edit form when editing by hand." Edits made with Genfixes are not excepted nor are edits that do not impact on the text ("cosmetic" or "inconsequential" edits). I believe that according to the AWB rules this edit should not be made. Best would be when Genfixes would make such fixes only if they introduce unwanted whitespace. Second best is that the AWB-operator undoes such fixes. Besides, Genfixes also has a bug "Genfixes removes comma from quoted date", which was logged on Phabricator as T236729 by Tom.Reading on 28 October 2019. It also results in edits that should be reverted by the AWB operator. With thanks and best regards, Johannes Schade ( talk) 17:28, 22 August 2023 (UTC)
any other approval for to activate the bot menu with time or this option was removed. IJohnKennady ( talk) 14:08, 25 August 2023 (UTC)
Hello, I was unsure about reporting this as a bug because that felt a little presumptuous. I just tried clicking on the "False" button, but the False positives.txt file was never created (yes, I'm checking it in the same directory where AutoWikiBrowser.exe is located). I even tried creating it "manually" so see if AWB would update it, to no avail. Victor Lopes Fala!• C 20:06, 14 September 2023 (UTC)
C:\Users\<myname>\AppData\Local\AutoWikiBrowser\False positives.txt
--
John of Reading (
talk) 20:37, 14 September 2023 (UTC)
The manual seems to suggest that the "Wiki search" is similar to searching on Wikipedia. I think I am overlooking something though because I get very different results. For example, I can search for insource:"{{refbegin|3}}{{legend"
here and get 96 pages to fix:
https://en.wikipedia.org/?search=insource%3A%22%7B%7Brefbegin%7C3%7D%7D%7B%7Blegend%22&title=Special%3ASearch&ns0=1
If I run the same input through AWB, it gives me well over a thousand results. I can see that I'm typing something wrong, but I don't know what? Rjjiii( talk) 07:20, 12 September 2023 (UTC)
3}}{{legend"and returns every page with both the number 3 and the word legend, the braces being treated as grayspace. I don't know why the first part returns no hits. I suspect
insource:/\{\{refbegin\|3}}\{\{legend/would work, although you seem to have fixed the 96 by now. David Brooks ( talk) 02:44, 16 September 2023 (UTC)
insource:"#refbegin#3#legend". Use the (slow) RE version for precision. David Brooks ( talk) 18:58, 17 September 2023 (UTC)
Hello,
I recently found out I no longer use AutoWikiBrowser when 2FA is active by receiving an error, "Failed". When I turned it off, there was no problem. But, to use AWB, must I deactivate the 2FA? Or there is something I am missing. -- Victor Trevor ( talk) 12:17, 18 September 2023 (UTC)
I think this is a fantastic tool for doing repetitive work across hundreds to thousands of articles. My most recent use is in the area of re-stubbing articles so that specific stub categories can be reduced in size, replaced by "manageable" sized categories. Without this tool, many mass-action stub-related and category-related edits would be nigh on impossible. There should be some recognition of this tool for its utility. Thank you. --User:Ceyockey ( talk to me) 01:08, 27 September 2023 (UTC)
Maybe I've been reading the instructions wrong, but after I create a list, configured all the options and click start, nothing happens except for the text on the bottom left corner which says "Restarting in n" (n is a changing number). Is there anything wrong with what I'm doing? 141 Pr { contribs} 07:29, 23 September 2023 (UTC)
I've been back to using AWB after a long absence, and it continues to work great. I was wondering though if the current software can do the following things or can be modified with a module or plugin to do them:
Thanks for any ideas. Stefen Towers among the rest! Gab • Gruntwerk 00:14, 2 October 2023 (UTC)
I tried starting AutoWikiBrowser on my computer but my antivirus blocked it with the message "Virus detected W32/Exploit.gen". Does my antivirus software suffer from paranoia or is it a problem with the latest release of AutoWikiBrowser? Hubba ( talk) 12:01, 13 October 2023 (UTC)
So I keep getting a network error "The request was aborted: Could not create SSL/TLS secure channel" Any clue why it's doing this?
When I try to refresh, it tells me to check my internet and see if my wiki is online even though I know for a fact that neither of these should be an issue 2601:5CB:C080:18D0:85D:2ED4:8637:C42F ( talk) 05:56, 10 October 2023 (UTC)
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
David Brooks (
talk) 03:12, 12 October 2023 (UTC)
I decided to compare the speed of a find-and-replace rule with the identical rule in C#, both run on German Empire, thinking C# would be somewhat faster. I've found the exact opposite, however.
The following find-and-replace rule:
(\=+\s*(?:(?:Foot)?Notes|Further reading)\s*\=+)((?:\s*\*?\s*\{\{\s*(?:Wik[it]|Commons|Reflist|Refbegin|Refend|notes?list|notes|cit[ea])[^\}]*\}\}\.?|\<references\s*/\>|\s*\<ref +name[^\<\>]+/\>|\s*\<ref +name[^\<\>/]+\>[\d\D]*?\</\s*ref\>|\s*\</\s*ref\>|\s*\}\}|\s*\<\!\-\-\s*(?!\{\{(?:Wik[it]|Commons))[\d\D]*?\-\-\>|\s*?[\r\n]+[ ]*\*[^\r\n]+)+)(\s*=+\s*See also\s*=*(?:(?:\s*\{\{(?:Portal|C?Commons|C ?cat|cc(?=\s*[\|\}])|Wik[it]|(?:col *div|colbegin|cols|div *2col|div *col *begin|div *col *start|div[ -]*col|divbegin|divided *column)[^\{\}]*\}\}[^\{\}]+\{\{\s*(?:col * div *end|col *end|div[ -]*col[ -]*end|div *end|end *div *col)|Columns\-list)[^\{\}]*\}\})*))((?:\s*\*(?:\s*\{\{\s*cite[^\{\}]+\}\}|[^\r\n]+))*)
$3$4 $1$2
with "Regular expression" checkbox checked, the others unchecked, "Apply No. of times" = 1, and nothing in the "If" tab, took an average of 64.75s to run over 4 runs (66, 65, 64, 64s).
The following C# module code, however, has been running (hanging), for over 30 minutes:
public string ProcessArticle(string ArticleText, string ArticleTitle, int wikiNamespace, out string Summary, out bool Skip)
{
Skip = false;
Summary = "Summary";
string regex = @"(\=+\s*(?:(?:Foot)?Notes|Further reading)\s*\=+)((?:\s*\*?\s*\{\{\s*(?:Wik[it]|Commons|Reflist|Refbegin|Refend|notes?list|notes|cit[ea])[^\}]*\}\}\.?|\<references\s*/\>|\s*\<ref +name[^\<\>]+/\>|\s*\<ref +name[^\<\>/]+\>[\d\D]*?\</\s*ref\>|\s*\</\s*ref\>|\s*\}\}|\s*\<\!\-\-\s*(?!\{\{(?:Wik[it]|Commons))[\d\D]*?\-\-\>|\s*?[\r\n]+[ ]*\*[^\r\n]+)+)(\s*=+\s*See also\s*=*(?:(?:\s*\{\{(?:Portal|C?Commons|C ?cat|cc(?=\s*[\|\}])|Wik[it]|(?:col *div|colbegin|cols|div *2col|div *col *begin|div *col *start|div[ -]*col|divbegin|divided *column)[^\{\}]*\}\}[^\{\}]+\{\{\s*(?:col * div *end|col *end|div[ -]*col[ -]*end|div *end|end *div *col)|Columns\-list)[^\{\}]*\}\})*))((?:\s*\*(?:\s*\{\{\s*cite[^\{\}]+\}\}|[^\r\n]+))*)";
ArticleText = Regex.Replace(ArticleText, regex, @"$3$4" + "\n\n" + @"$1$2", RegexOptions.IgnoreCase);
return ArticleText;
}
There are no @
, "
, ;
characters in the regex that need to be escaped, and "Skip if no changes are made" was checked for both runs.
Does anyone know why this is? ~ Tom.Reding ( talk ⋅ dgaf) 17:44, 24 October 2023 (UTC)
If a regular expression takes more than a couple of seconds to run on wp-article lengths of text then it will be due to catastrophic batcktracking. That's not an issue with AWB or C#, it is a fundamental limitation of how regular expressions work. Backtracking can sometimes be resolved in 10s of seconds or minutes, but it could take years on a sufficiently long input string (as it's an exponential issue). I can't really make sense of the large regex expression given, what I'd suggest to do is separate it into smaller parts and identify which clause or clauses are backtracking, then see if you can adjust them to avoid the issue.
If you are able to write a module you will probably find it is faster to find candidate text with simple regexes, then do your negative checks/exclusions on only those strings of text matched, and proceed to replace if no exclusions found i.e. breaking things down rather than one very large find/replace with lookaheads etc. That way any backtracking is limited to a very short string not the whole text of a wp article etc. Rjwilmsi 18:23, 29 October 2023 (UTC)
Well, I noodled on this and found a fix. But (a) It's a source code fix; I haven't yet figured out whether the RE can be tweaked to compensate (b) I have no idea why it makes a difference (c) I have no idea if it would introduce regressions. Code in T350636.
tl;dr: during page pre-processing, AWB normalizes line endings from \r\n to \n before running the rule, but not before running the module (which comes first). Making that normalization happen before running the module restores the expected 40-50 second runtime. David Brooks ( talk) 22:57, 6 November 2023 (UTC)
Could you, kindly, use a bot to make all "Provinces of..." into "provinces of..." (with a lowercase initial)? It is correct in lowercase, almost all sources, whether in Italian, French or other languages write "provinces" with a lowercase initial. To make it clearer, as in the " Province of Pordenone" page and not as in the " Province of Rovigo" page. Thanks in advance. JackkBrown ( talk) 14:44, 7 November 2023 (UTC)
Hi, on this page, Wikipedia:Vital_articles/Level/5/History, I am trying to put the events prior to 1945 in the late modern section and the events after 1945 in the Contemporary section. I was hoping that someone can provide me with step-by-step instructions on how I can sort the events using AWB. Thank you. Interstellarity ( talk) 14:20, 8 November 2023 (UTC)
Hi. I'm trying to edit some repetitive text out of some files on Wikimedia Commons. Unfortunately there's thousands of instances of it. So I'm going through individual folders to edit each file which I don't necessarily have a problem with, but if I load all the files into the pages list and click save it only edits a single file at a time. So is there a way to batch save the edit to all the files in the list without having to click save thousands of times? Otherwise I'm going to have to click save 65,000 time, which I rather not do if I can just do all the edits at once. Thanks. Adamant1 ( talk) 03:01, 10 November 2023 (UTC)
Please see this discussion with User:Primefac about a problem with the placement of WP:VITAL. It was concluded long ago at WP:TALKLEAD that Vital Wikproject is included in the banner shell. SandyGeorgia ( Talk) 11:55, 1 November 2023 (UTC)
Apparently, in this edit, AWB moved the "hatnote group" shell below the actual hatnotes (rather than surrounding them), leaving an error message on the page. Can this be fixed to avoid repetition? BD2412 T 01:31, 14 November 2023 (UTC)
Why should editors request permission for AutoWikiBrowser? Should the application be open without registering? Toadette ( let's chat together) 11:33, 17 November 2023 (UTC)
In this diff, AWB's GENFIX set messed up an implementation of {{ hatnote group}}. Could this be fixed to resolve the error? {{u| Sdkb}} talk 04:38, 5 October 2023 (UTC)
On Turkish Wikipedia, Flagged revisions is actively used on all articles. I do not want AWB to make changes to pages with Pending Changes. Is this technically possible? Sadrettin ( talk) 18:51, 14 December 2023 (UTC)
Template:Double soft redirect is in the process of being deleted per Wikipedia:Templates for discussion/Log/2023 December 12#Template:Double soft redirect. Apparently, AWB is set up to bypass redirects pointing towards it as a uncontroversial maintenance task, so informing this page in the event AWB needs to be updated. Steel1943 ( talk) 02:07, 20 December 2023 (UTC)
In the current version of AWB 6.2.1.0, I do find Make List of "User contribs", which is nice.
But for Wikimedia Commons a "User uploads", and for Wikipedia a "User created" would be extremely handy options to alow to get the list of files uploaded by a user, or pages created... This functionality seems to be missing? I assume it could very easily added? Geertivp ( talk) 19:33, 29 December 2023 (UTC)
User:Me/sandbox
in the Templates&links tab to your list's location, 2) check Plain text
in the Output tab, 3) click "Do it!" and 4) Ctrl+A and Ctrl+C on that page. This same method also works for file uploads; you only have to change to the file namespace in that Pages Created tool and in the "Page properties" tab in PetScan. If the assessment symbols like
File:Symbol question.svg in your list bother you, you can break the links by changing File:Symbol
to something like File Symbol
with any text editor's search and replace tool or with the edit toolbar's
Search and Replace function. --
JAAqqO (
talk) 21:40, 30 December 2023 (UTC)
One thing with New Zealand Wikipedia is that it is incredibly common for articles to be filled with American spellings, eg "color" vs "colour". I'd like to find these typos by searching for the {{Use New Zealand English}} template and a typo, eg "color". How would I do this? I'm unsure how people search for things, and I'm unsure how to plug these search results into AWB. — Panamitsu (talk) 03:20, 19 December 2023 (UTC)
I'd like to discuss this here before creating something on Fabricator. In doing work deleting infobox parameters and their data, sometimes the replacement of the entire line deletes a named ref with its information, thus causing the deletion to mess up the other usages of this named ref. Would it be possible for AWB to look for this in the changed result and either alert or move the ref to the next occurance of the named ref? Naraht ( talk) 16:28, 31 December 2023 (UTC)
\|\s*mission\s*=\s*(?![^\{\|}]*<\s*ref\s+name\s*=\s*[^<>/]+>)(?# append parameter removal regex here )
(?!...)
, and most importantly the /
inside the negation set [^<>/]+
, which allows <ref name=ref2/>
to pass (via a double negative), but avoids <ref name=ref1>
. ~
Tom.Reding (
talk ⋅
dgaf) 10:20, 1 January 2024 (UTC)
Several people have been asking for a release of the latest builds. If you trust me <insert snarky comment here>, I've thrown a build of the latest release - revision 12554, dated Nov 1 - up on github. Go to https://github.com/DavidWBrooks/UnofficialAWB/releases/latest, and click AutoWikiBrowser6211.zip. You can then follow the installation instructions from Wikipedia:AutoWikiBrowser#(2) Download. As they say, it works for me. David Brooks ( talk) 23:10, 17 November 2023 (UTC)
the underlying problem: do you mean the delay in releasing after a significant update? If so, "we" is the maintainers (I'm guessing specifically Reedy, yes?) That said, I'll leave my github project active, but not update it unless another crisis does arise. David Brooks ( talk) 04:38, 17 January 2024 (UTC)
Although I'm still trying to get over my embarrassment at forgetting AWBUpdater, may I make a modest proposal? I do find apps like Notepad++ and others annoying with their frequent "do you want to update?" popups when all I want to do is edit this file, dammit (although, rarely, some apps make it mandatory because of upstream changes). Visual Studio itself has a little flag that offers to update in the background when you eventually exit the app, which is nicer. But I do understand that offering frequent updates to general AWB users is unnecessary.
An alternative, particularly for users who need a particular itch scratched, would be a beta channel. After all, I offered a version of that above. A more frequent propagation of a stable build, accompanied by a list of recent revisions' comments, downloaded on demand from an alternate trusted source either manually or using a gently modified AWBUpdater.
I realize I'm implying extra work on the maintainers, probably Reedy, but I'll put it out there. David Brooks ( talk) 16:47, 18 January 2024 (UTC)
H AWB team! Please can the general fixes described at Wikipedia:AutoWikiBrowser/General fixes#WikiProjectBannerShell fixes (WikiProjectBannerShell) be amended as follows:
|blp=no
. This is a valid value for the blp parameter as we are now moving the |living=
parameter from {{
WikiProject Biography}} into the banner shell. This is needed for dead people, otherwise the
Category:Biography articles without living parameter tracking category will be triggered.|1=
.Thanks in advance — Martin ( MSGJ · talk) 14:33, 10 February 2024 (UTC)
|listas=
" from WikiProject Biography section to the banner shell section and move the parameter itself as part of the fixes. Plus, ideally should also remove |living=
from WikiProject Biography and explicitly set |blp=
in the banner shell based on it's value. If no objections to any of this, can then file something on Phabricator. Thanks. -
Kj cheetham (
talk) 14:53, 10 February 2024 (UTC)The task here is for all fraternity and sorority list articles to have the listas parameter added if they don't have one. So in Talk:List of Omicron Nu chapters , replace {{WikiProject Fraternities and Sororities| with {{WikiProject Fraternities and Sororities|listas=Omicron Nu chapters. I can grab all of the ones that I want in Category:List-Class Fraternities and Sororities articles, and skip any that already have listas. But given that the listas depends on the title, any ideas on using the article title here? Naraht ( talk) 20:20, 17 February 2024 (UTC)
|1=
."
GoingBatty (
talk) 15:06, 18 February 2024 (UTC)I'm finding and replacing "parking metre" - an incorrect spelling of "parking meter". When I use wiki search (text) and enter "parking metre" the search finds spellings with both "parking meter" and "parking metre", which I do not want. I only want to find the spellings errors. How do I prevent it from showing both spellings? — Panamitsu (talk) 10:01, 24 February 2024 (UTC)
~"parking metre" insource:/[p|P]arking [m|M]etre/
- no results.
Neils51 (
talk) 12:24, 24 February 2024 (UTC)
parking insource:/[pP]arking [mM]etre/
gives me one hit:
Timeline of South Australian history, where the correct term (intentionally) pipes to "parking metres". To Panamitsu: that was a regular expression search, which is precise but very slow and resource-heavy. The "parking" does a pre-filter.
David Brooks (
talk) 16:22, 25 February 2024 (UTC)
~"parking metre*" insource:/[p|P]arking [m|M]etre/
. Leave to Panamitsu to fix the article.
Neils51 (
talk) 23:17, 25 February 2024 (UTC)
[pP]
and the (almost) equivalent (p|P)
, not that it hurts in this case.
David Brooks (
talk) 00:15, 26 February 2024 (UTC)
I've recently enabled Two-factor authentication, and since then, I've encountered difficulty logging into AWB. I would like to know if there is any solution to this issue, as repeatedly disabling two-factor authentication to use AWB is quite hazardous. Thank you. GSS 💬 15:29, 7 March 2024 (UTC)
After hour of editing I accidentally type Escape key. Any way to continue editing or to save changed text? Thank you. A.sav ( talk) 19:21, 12 March 2024 (UTC)
Did we just update? I edited with AWB yesterday, no issues, but just now when i started up i was required to re-download the software. I don't see anything on this page or the project page indicating anything, so just wondering if there was an update and if anything i ought to know about will have changed? Happy days, ~ Lindsay H ello 08:41, 13 March 2024 (UTC)
This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 30 | ← | Archive 32 | Archive 33 | Archive 34 |
I rcently discussed AWB General Fixes (Genfixes) removing spaces before HTML (i.e. invisible) comments with Neils51 on his talk page. We agreed to disagree. If I understand Neils51 (an expert on AWB) right, he seems to believe that Genfixes in this case does a valid edit, while I (a lesser editor) believe it does wrong. He nevertheless suggested I should discuss it here to obtain consensus.
Genfixes seems to automatically remove all spaces placed immediately before HTML comments. It seems to assume that spaces before such comments result in unwanted white-space. Indeed MOS:COMMENT advises to check for unwanted whitespace when adding HTML comments. This may happen under some circumstances but not always.
Help:Whitespace (I thank User:1TWO3Writer, who pointed me to this page) recommends to avoid all whitespace (in particular spaces) before an HTML comment. It looks as if Genspaces implements that recommendation, but as a HELP is not MOS, this is compulsory.
In Antoine Hamilton I added HTML comments on some of the Help:List-defined references. For example, I started a definition of a citation from Corp's article on Antoine Hamilton in the Oxford Dictionary of National Biography in a line reading:
<ref name=Corp2004a766lc38> <!-- Anthony Hamilton, ODNB -->
Running Genfixes changed this to:
<ref name=Corp2004a766lc38><!-- Anthony Hamilton, ODNB -->
removing the space. I find that this edit makes the code less readable. The space does not create an unwanted whitespace in the text.
WP:AWBRULES prescribes "You are expected to review every edit, just as if you were making an edit using Wikipedia's edit form when editing by hand." Edits made with Genfixes are not excepted nor are edits that do not impact on the text ("cosmetic" or "inconsequential" edits). I believe that according to the AWB rules this edit should not be made. Best would be when Genfixes would make such fixes only if they introduce unwanted whitespace. Second best is that the AWB-operator undoes such fixes. Besides, Genfixes also has a bug "Genfixes removes comma from quoted date", which was logged on Phabricator as T236729 by Tom.Reading on 28 October 2019. It also results in edits that should be reverted by the AWB operator. With thanks and best regards, Johannes Schade ( talk) 17:28, 22 August 2023 (UTC)
any other approval for to activate the bot menu with time or this option was removed. IJohnKennady ( talk) 14:08, 25 August 2023 (UTC)
Hello, I was unsure about reporting this as a bug because that felt a little presumptuous. I just tried clicking on the "False" button, but the False positives.txt file was never created (yes, I'm checking it in the same directory where AutoWikiBrowser.exe is located). I even tried creating it "manually" so see if AWB would update it, to no avail. Victor Lopes Fala!• C 20:06, 14 September 2023 (UTC)
C:\Users\<myname>\AppData\Local\AutoWikiBrowser\False positives.txt
--
John of Reading (
talk) 20:37, 14 September 2023 (UTC)
The manual seems to suggest that the "Wiki search" is similar to searching on Wikipedia. I think I am overlooking something though because I get very different results. For example, I can search for insource:"{{refbegin|3}}{{legend"
here and get 96 pages to fix:
https://en.wikipedia.org/?search=insource%3A%22%7B%7Brefbegin%7C3%7D%7D%7B%7Blegend%22&title=Special%3ASearch&ns0=1
If I run the same input through AWB, it gives me well over a thousand results. I can see that I'm typing something wrong, but I don't know what? Rjjiii( talk) 07:20, 12 September 2023 (UTC)
3}}{{legend"and returns every page with both the number 3 and the word legend, the braces being treated as grayspace. I don't know why the first part returns no hits. I suspect
insource:/\{\{refbegin\|3}}\{\{legend/would work, although you seem to have fixed the 96 by now. David Brooks ( talk) 02:44, 16 September 2023 (UTC)
insource:"#refbegin#3#legend". Use the (slow) RE version for precision. David Brooks ( talk) 18:58, 17 September 2023 (UTC)
Hello,
I recently found out I no longer use AutoWikiBrowser when 2FA is active by receiving an error, "Failed". When I turned it off, there was no problem. But, to use AWB, must I deactivate the 2FA? Or there is something I am missing. -- Victor Trevor ( talk) 12:17, 18 September 2023 (UTC)
I think this is a fantastic tool for doing repetitive work across hundreds to thousands of articles. My most recent use is in the area of re-stubbing articles so that specific stub categories can be reduced in size, replaced by "manageable" sized categories. Without this tool, many mass-action stub-related and category-related edits would be nigh on impossible. There should be some recognition of this tool for its utility. Thank you. --User:Ceyockey ( talk to me) 01:08, 27 September 2023 (UTC)
Maybe I've been reading the instructions wrong, but after I create a list, configured all the options and click start, nothing happens except for the text on the bottom left corner which says "Restarting in n" (n is a changing number). Is there anything wrong with what I'm doing? 141 Pr { contribs} 07:29, 23 September 2023 (UTC)
I've been back to using AWB after a long absence, and it continues to work great. I was wondering though if the current software can do the following things or can be modified with a module or plugin to do them:
Thanks for any ideas. Stefen Towers among the rest! Gab • Gruntwerk 00:14, 2 October 2023 (UTC)
I tried starting AutoWikiBrowser on my computer but my antivirus blocked it with the message "Virus detected W32/Exploit.gen". Does my antivirus software suffer from paranoia or is it a problem with the latest release of AutoWikiBrowser? Hubba ( talk) 12:01, 13 October 2023 (UTC)
So I keep getting a network error "The request was aborted: Could not create SSL/TLS secure channel" Any clue why it's doing this?
When I try to refresh, it tells me to check my internet and see if my wiki is online even though I know for a fact that neither of these should be an issue 2601:5CB:C080:18D0:85D:2ED4:8637:C42F ( talk) 05:56, 10 October 2023 (UTC)
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
David Brooks (
talk) 03:12, 12 October 2023 (UTC)
I decided to compare the speed of a find-and-replace rule with the identical rule in C#, both run on German Empire, thinking C# would be somewhat faster. I've found the exact opposite, however.
The following find-and-replace rule:
(\=+\s*(?:(?:Foot)?Notes|Further reading)\s*\=+)((?:\s*\*?\s*\{\{\s*(?:Wik[it]|Commons|Reflist|Refbegin|Refend|notes?list|notes|cit[ea])[^\}]*\}\}\.?|\<references\s*/\>|\s*\<ref +name[^\<\>]+/\>|\s*\<ref +name[^\<\>/]+\>[\d\D]*?\</\s*ref\>|\s*\</\s*ref\>|\s*\}\}|\s*\<\!\-\-\s*(?!\{\{(?:Wik[it]|Commons))[\d\D]*?\-\-\>|\s*?[\r\n]+[ ]*\*[^\r\n]+)+)(\s*=+\s*See also\s*=*(?:(?:\s*\{\{(?:Portal|C?Commons|C ?cat|cc(?=\s*[\|\}])|Wik[it]|(?:col *div|colbegin|cols|div *2col|div *col *begin|div *col *start|div[ -]*col|divbegin|divided *column)[^\{\}]*\}\}[^\{\}]+\{\{\s*(?:col * div *end|col *end|div[ -]*col[ -]*end|div *end|end *div *col)|Columns\-list)[^\{\}]*\}\})*))((?:\s*\*(?:\s*\{\{\s*cite[^\{\}]+\}\}|[^\r\n]+))*)
$3$4 $1$2
with "Regular expression" checkbox checked, the others unchecked, "Apply No. of times" = 1, and nothing in the "If" tab, took an average of 64.75s to run over 4 runs (66, 65, 64, 64s).
The following C# module code, however, has been running (hanging), for over 30 minutes:
public string ProcessArticle(string ArticleText, string ArticleTitle, int wikiNamespace, out string Summary, out bool Skip)
{
Skip = false;
Summary = "Summary";
string regex = @"(\=+\s*(?:(?:Foot)?Notes|Further reading)\s*\=+)((?:\s*\*?\s*\{\{\s*(?:Wik[it]|Commons|Reflist|Refbegin|Refend|notes?list|notes|cit[ea])[^\}]*\}\}\.?|\<references\s*/\>|\s*\<ref +name[^\<\>]+/\>|\s*\<ref +name[^\<\>/]+\>[\d\D]*?\</\s*ref\>|\s*\</\s*ref\>|\s*\}\}|\s*\<\!\-\-\s*(?!\{\{(?:Wik[it]|Commons))[\d\D]*?\-\-\>|\s*?[\r\n]+[ ]*\*[^\r\n]+)+)(\s*=+\s*See also\s*=*(?:(?:\s*\{\{(?:Portal|C?Commons|C ?cat|cc(?=\s*[\|\}])|Wik[it]|(?:col *div|colbegin|cols|div *2col|div *col *begin|div *col *start|div[ -]*col|divbegin|divided *column)[^\{\}]*\}\}[^\{\}]+\{\{\s*(?:col * div *end|col *end|div[ -]*col[ -]*end|div *end|end *div *col)|Columns\-list)[^\{\}]*\}\})*))((?:\s*\*(?:\s*\{\{\s*cite[^\{\}]+\}\}|[^\r\n]+))*)";
ArticleText = Regex.Replace(ArticleText, regex, @"$3$4" + "\n\n" + @"$1$2", RegexOptions.IgnoreCase);
return ArticleText;
}
There are no @
, "
, ;
characters in the regex that need to be escaped, and "Skip if no changes are made" was checked for both runs.
Does anyone know why this is? ~ Tom.Reding ( talk ⋅ dgaf) 17:44, 24 October 2023 (UTC)
If a regular expression takes more than a couple of seconds to run on wp-article lengths of text then it will be due to catastrophic batcktracking. That's not an issue with AWB or C#, it is a fundamental limitation of how regular expressions work. Backtracking can sometimes be resolved in 10s of seconds or minutes, but it could take years on a sufficiently long input string (as it's an exponential issue). I can't really make sense of the large regex expression given, what I'd suggest to do is separate it into smaller parts and identify which clause or clauses are backtracking, then see if you can adjust them to avoid the issue.
If you are able to write a module you will probably find it is faster to find candidate text with simple regexes, then do your negative checks/exclusions on only those strings of text matched, and proceed to replace if no exclusions found i.e. breaking things down rather than one very large find/replace with lookaheads etc. That way any backtracking is limited to a very short string not the whole text of a wp article etc. Rjwilmsi 18:23, 29 October 2023 (UTC)
Well, I noodled on this and found a fix. But (a) It's a source code fix; I haven't yet figured out whether the RE can be tweaked to compensate (b) I have no idea why it makes a difference (c) I have no idea if it would introduce regressions. Code in T350636.
tl;dr: during page pre-processing, AWB normalizes line endings from \r\n to \n before running the rule, but not before running the module (which comes first). Making that normalization happen before running the module restores the expected 40-50 second runtime. David Brooks ( talk) 22:57, 6 November 2023 (UTC)
Could you, kindly, use a bot to make all "Provinces of..." into "provinces of..." (with a lowercase initial)? It is correct in lowercase, almost all sources, whether in Italian, French or other languages write "provinces" with a lowercase initial. To make it clearer, as in the " Province of Pordenone" page and not as in the " Province of Rovigo" page. Thanks in advance. JackkBrown ( talk) 14:44, 7 November 2023 (UTC)
Hi, on this page, Wikipedia:Vital_articles/Level/5/History, I am trying to put the events prior to 1945 in the late modern section and the events after 1945 in the Contemporary section. I was hoping that someone can provide me with step-by-step instructions on how I can sort the events using AWB. Thank you. Interstellarity ( talk) 14:20, 8 November 2023 (UTC)
Hi. I'm trying to edit some repetitive text out of some files on Wikimedia Commons. Unfortunately there's thousands of instances of it. So I'm going through individual folders to edit each file which I don't necessarily have a problem with, but if I load all the files into the pages list and click save it only edits a single file at a time. So is there a way to batch save the edit to all the files in the list without having to click save thousands of times? Otherwise I'm going to have to click save 65,000 time, which I rather not do if I can just do all the edits at once. Thanks. Adamant1 ( talk) 03:01, 10 November 2023 (UTC)
Please see this discussion with User:Primefac about a problem with the placement of WP:VITAL. It was concluded long ago at WP:TALKLEAD that Vital Wikproject is included in the banner shell. SandyGeorgia ( Talk) 11:55, 1 November 2023 (UTC)
Apparently, in this edit, AWB moved the "hatnote group" shell below the actual hatnotes (rather than surrounding them), leaving an error message on the page. Can this be fixed to avoid repetition? BD2412 T 01:31, 14 November 2023 (UTC)
Why should editors request permission for AutoWikiBrowser? Should the application be open without registering? Toadette ( let's chat together) 11:33, 17 November 2023 (UTC)
In this diff, AWB's GENFIX set messed up an implementation of {{ hatnote group}}. Could this be fixed to resolve the error? {{u| Sdkb}} talk 04:38, 5 October 2023 (UTC)
On Turkish Wikipedia, Flagged revisions is actively used on all articles. I do not want AWB to make changes to pages with Pending Changes. Is this technically possible? Sadrettin ( talk) 18:51, 14 December 2023 (UTC)
Template:Double soft redirect is in the process of being deleted per Wikipedia:Templates for discussion/Log/2023 December 12#Template:Double soft redirect. Apparently, AWB is set up to bypass redirects pointing towards it as a uncontroversial maintenance task, so informing this page in the event AWB needs to be updated. Steel1943 ( talk) 02:07, 20 December 2023 (UTC)
In the current version of AWB 6.2.1.0, I do find Make List of "User contribs", which is nice.
But for Wikimedia Commons a "User uploads", and for Wikipedia a "User created" would be extremely handy options to alow to get the list of files uploaded by a user, or pages created... This functionality seems to be missing? I assume it could very easily added? Geertivp ( talk) 19:33, 29 December 2023 (UTC)
User:Me/sandbox
in the Templates&links tab to your list's location, 2) check Plain text
in the Output tab, 3) click "Do it!" and 4) Ctrl+A and Ctrl+C on that page. This same method also works for file uploads; you only have to change to the file namespace in that Pages Created tool and in the "Page properties" tab in PetScan. If the assessment symbols like
File:Symbol question.svg in your list bother you, you can break the links by changing File:Symbol
to something like File Symbol
with any text editor's search and replace tool or with the edit toolbar's
Search and Replace function. --
JAAqqO (
talk) 21:40, 30 December 2023 (UTC)
One thing with New Zealand Wikipedia is that it is incredibly common for articles to be filled with American spellings, eg "color" vs "colour". I'd like to find these typos by searching for the {{Use New Zealand English}} template and a typo, eg "color". How would I do this? I'm unsure how people search for things, and I'm unsure how to plug these search results into AWB. — Panamitsu (talk) 03:20, 19 December 2023 (UTC)
I'd like to discuss this here before creating something on Fabricator. In doing work deleting infobox parameters and their data, sometimes the replacement of the entire line deletes a named ref with its information, thus causing the deletion to mess up the other usages of this named ref. Would it be possible for AWB to look for this in the changed result and either alert or move the ref to the next occurance of the named ref? Naraht ( talk) 16:28, 31 December 2023 (UTC)
\|\s*mission\s*=\s*(?![^\{\|}]*<\s*ref\s+name\s*=\s*[^<>/]+>)(?# append parameter removal regex here )
(?!...)
, and most importantly the /
inside the negation set [^<>/]+
, which allows <ref name=ref2/>
to pass (via a double negative), but avoids <ref name=ref1>
. ~
Tom.Reding (
talk ⋅
dgaf) 10:20, 1 January 2024 (UTC)
Several people have been asking for a release of the latest builds. If you trust me <insert snarky comment here>, I've thrown a build of the latest release - revision 12554, dated Nov 1 - up on github. Go to https://github.com/DavidWBrooks/UnofficialAWB/releases/latest, and click AutoWikiBrowser6211.zip. You can then follow the installation instructions from Wikipedia:AutoWikiBrowser#(2) Download. As they say, it works for me. David Brooks ( talk) 23:10, 17 November 2023 (UTC)
the underlying problem: do you mean the delay in releasing after a significant update? If so, "we" is the maintainers (I'm guessing specifically Reedy, yes?) That said, I'll leave my github project active, but not update it unless another crisis does arise. David Brooks ( talk) 04:38, 17 January 2024 (UTC)
Although I'm still trying to get over my embarrassment at forgetting AWBUpdater, may I make a modest proposal? I do find apps like Notepad++ and others annoying with their frequent "do you want to update?" popups when all I want to do is edit this file, dammit (although, rarely, some apps make it mandatory because of upstream changes). Visual Studio itself has a little flag that offers to update in the background when you eventually exit the app, which is nicer. But I do understand that offering frequent updates to general AWB users is unnecessary.
An alternative, particularly for users who need a particular itch scratched, would be a beta channel. After all, I offered a version of that above. A more frequent propagation of a stable build, accompanied by a list of recent revisions' comments, downloaded on demand from an alternate trusted source either manually or using a gently modified AWBUpdater.
I realize I'm implying extra work on the maintainers, probably Reedy, but I'll put it out there. David Brooks ( talk) 16:47, 18 January 2024 (UTC)
H AWB team! Please can the general fixes described at Wikipedia:AutoWikiBrowser/General fixes#WikiProjectBannerShell fixes (WikiProjectBannerShell) be amended as follows:
|blp=no
. This is a valid value for the blp parameter as we are now moving the |living=
parameter from {{
WikiProject Biography}} into the banner shell. This is needed for dead people, otherwise the
Category:Biography articles without living parameter tracking category will be triggered.|1=
.Thanks in advance — Martin ( MSGJ · talk) 14:33, 10 February 2024 (UTC)
|listas=
" from WikiProject Biography section to the banner shell section and move the parameter itself as part of the fixes. Plus, ideally should also remove |living=
from WikiProject Biography and explicitly set |blp=
in the banner shell based on it's value. If no objections to any of this, can then file something on Phabricator. Thanks. -
Kj cheetham (
talk) 14:53, 10 February 2024 (UTC)The task here is for all fraternity and sorority list articles to have the listas parameter added if they don't have one. So in Talk:List of Omicron Nu chapters , replace {{WikiProject Fraternities and Sororities| with {{WikiProject Fraternities and Sororities|listas=Omicron Nu chapters. I can grab all of the ones that I want in Category:List-Class Fraternities and Sororities articles, and skip any that already have listas. But given that the listas depends on the title, any ideas on using the article title here? Naraht ( talk) 20:20, 17 February 2024 (UTC)
|1=
."
GoingBatty (
talk) 15:06, 18 February 2024 (UTC)I'm finding and replacing "parking metre" - an incorrect spelling of "parking meter". When I use wiki search (text) and enter "parking metre" the search finds spellings with both "parking meter" and "parking metre", which I do not want. I only want to find the spellings errors. How do I prevent it from showing both spellings? — Panamitsu (talk) 10:01, 24 February 2024 (UTC)
~"parking metre" insource:/[p|P]arking [m|M]etre/
- no results.
Neils51 (
talk) 12:24, 24 February 2024 (UTC)
parking insource:/[pP]arking [mM]etre/
gives me one hit:
Timeline of South Australian history, where the correct term (intentionally) pipes to "parking metres". To Panamitsu: that was a regular expression search, which is precise but very slow and resource-heavy. The "parking" does a pre-filter.
David Brooks (
talk) 16:22, 25 February 2024 (UTC)
~"parking metre*" insource:/[p|P]arking [m|M]etre/
. Leave to Panamitsu to fix the article.
Neils51 (
talk) 23:17, 25 February 2024 (UTC)
[pP]
and the (almost) equivalent (p|P)
, not that it hurts in this case.
David Brooks (
talk) 00:15, 26 February 2024 (UTC)
I've recently enabled Two-factor authentication, and since then, I've encountered difficulty logging into AWB. I would like to know if there is any solution to this issue, as repeatedly disabling two-factor authentication to use AWB is quite hazardous. Thank you. GSS 💬 15:29, 7 March 2024 (UTC)
After hour of editing I accidentally type Escape key. Any way to continue editing or to save changed text? Thank you. A.sav ( talk) 19:21, 12 March 2024 (UTC)
Did we just update? I edited with AWB yesterday, no issues, but just now when i started up i was required to re-download the software. I don't see anything on this page or the project page indicating anything, so just wondering if there was an update and if anything i ought to know about will have changed? Happy days, ~ Lindsay H ello 08:41, 13 March 2024 (UTC)