Jump to content

Wikipedia talk:AutoWikiBrowser

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Vanbasten 23 (talk | contribs) at 08:35, 3 February 2022 (Change: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This is the discussion page for the AWB project. It is also the place to discuss using the AWB program itself (if you need help, or have a question about AWB, etc.). Where to make specific types of reports or requests is explained in the Before you post section below. Before asking questions, please read the Frequently asked questions below.

Before you post

Do you want to ... Please use
Report a bug or request a feature in AWB? Check reported tasks before filing a new task. You do not need to create another account there; just log in with your normal Wikimedia account. See this MediaWiki wiki page on how to report bugs and request features on Phabricator.
Report a bug details

Try to report bugs in the current version of the software. Update to the most recent version and check to make sure your bug has not been reported already on this page. See "How to Report Bugs Effectively" for advice on how to write bug reports.

Before posting anything related to non-Wikimedia Foundation wikis, verify that the site is running a recent version of MediaWiki with enabled Bot API. Older versions of MediaWiki or without the Bot API are not supported. Be sure to mention the exact URL of your wiki.

Request a feature details

Please use the feature request button to add new feature requests. This format allows the developers to keep track of feature requests. Take some time to search the archives, both on-wiki and on Phabricator to check whether a similar request was previously discussed.

Report an incorrectly fixed typo? Wikipedia talk:AutoWikiBrowser/Typos
Request approval to use AWB? Wikipedia:Requests for permissions/AutoWikiBrowser
Ask a question about AWB or ask for help? This page

Frequently asked questions

Frequently asked questions
  • When I start it up I get one of the following errors:
    "The application failed to initialize properly (0xc0000135). Click on OK to terminate the application.", or
    "To run this application, you must first install one of the following versions of the .NET Framework..."
    This error means your computer does not have the .NET framework version 2 installed properly. You can choose from various versions for download here, or you can run Windows Update and select version 2 of the .Net framework from the "Optional Updates" section, if you want the choice made for you.
  • Does AWB run on Linux or Mac?
  • Does AWB work on other projects and languages?
    Many Wikimedia projects and languages are supported, see the "User and project preferences" option in the general menu. Other languages will be added on request, though at the moment the interface is always in English. You are also able to use AWB with third-party wikis: Options > Preferences > Site, you can change the wiki there. The wiki must support the Bot API required by AWB. This means that it should have latest HEAD version of MediaWiki or something close to that. The wmf-deployment branch is also recommended, as this is what is currently live on WMF sites.
  • Under Windows Vista (and newer), AWB is using wrong font size, which results in clipped text and lost buttons and options, (see example here). How to fix it?
    • Solution #1: Go to "Control Panel\All Control Panel Items\Display" and switch resizing of the fonts to 100%.
    • Solution #2: Right click on AutoWikiBrowser.exe --> Properties -> Compatibility (tab) --> enable the "Disable display scaling on high DPI settings" option or for Windows 10, if available, select System (Enhanced).
  • AWB puts stubs after categories, though categories are always rendered the last by MediaWiki?
    According to WP:STUB#Categorizing stubs, by convention they are placed at the end of the article, after the External links section, any navigation templates, and the category tags, so that the stub category will appear last. If your wiki uses another order, please let us know here.
  • I don't like or use Internet Explorer; please use Firefox instead.
    AWB does not use Internet Explorer per se. It does, however, use the same web browser control (MSHTML) as Internet Explorer; the equivalent Firefox component does not provide the needed functionality.
  • How do I open the page in another browser if I can't use the one in AWB?
    Right click on the edit box in the bottom right side of your screen. Select "Open page in browser".
  • How do I edit a page that doesn't exist?
    Uncheck "Ignore non existing pages" in the "Skip articles" box.
  • How do I skip certain articles?
    Use the "Skip if contains" and "Skip if doesn't contain" on the "Skip" tab
  • Can't you leave up a "stable" version, so I don't have to download new versions?
    It is important to keep people up to date with the latest versions, because their use of the software doesn't just affect them, but the whole of Wikipedia. As any bugs that remain will be trivial, hopefully releases won't be too frequent.
  • How can I stop AWB clicking when it changes pages?
    This is a Windows sound theme setting. This page explains how to turn off the clicking sound.
    Alternatively, delete the following key from the Windows registry:
    HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating\.Current
  • AWB randomly crashes upon page load on my system, and I always use a browser other than Internet Explorer when using Wikipedia.
    You may have installed custom scripts incompatible with IE. Wrap the contents of your monobook.js into conditional:
               //Detect IE5.5+
               if (navigator.appVersion.indexOf("MSIE")==-1)
               {
                   // Previous contents go here
                   ....
               }
  • I get Just In Time Debugger Messages when loading AWB/loading pages.
    In Internet Explorer, go to Tools → Options → Advanced. Make sure 'Disable Script Debugging (Internet Explorer)' and 'Disable Script Debugging (Other)' Are both checked. Press apply and close.
  • Why does AWB run very, very slowly if I try to make changes in the edit window on larger pages, especially pages with long lists or tables?
    If running on Windows, exit the Speech Recognition software that is built into some versions of Windows; don't just turn it 'Off', you must 'Exit' the software if you have started up Speech Recognition.
  • When I do a clean install of AutoWikiBrowser the application seems to find old setting data somewhere. I'd like to do a really clean install. Any ideas?
    Clean up your registry and remove the folder "C:\Documents and Settings\user name\Local Settings\Application Data\AutoWikiBrowser" (Windows XP) or "C:\Users\user name\AppData\Local\AutoWikiBrowser\" (Windows 7). Note that the application data folder may be hidden.
  • AWB prompts that there is a newer version but won't update
    Check the version number of your AWBUpdater.exe. The current version is 2.4.0.0. If you have an older version, you have to download the latest AWB version and make a clean install.
  • Which .NET Framework version do I have?
    You can find your .NET Framework version in Help → About box.
  • Where are the default settings stored?
    • Windows XP: C:\Documents and Settings\[username]\Local Settings\Application Data\AutoWikiBrowser
    • Windows Vista onwards: C:\Users\[username]\AppData\Local\AutoWikiBrowser\Default.xml
  • I cannot copy text from the diff window using the Control+C keyboard shortcut.
    You must have Microsoft.mshtml.dll available for AWB to use for this functionality to work. You can try downloading the file (there are a number of third-party websites offering DLL file downloads) and putting it in the same folder as AutoWikiBrowser.exe. This is reported not to work for all users, presumably due to .NET Framework problems.
  • Is there any way to set AWB to not use https? (GFW blocks 443 port)
    In preferences, set project to "custom". Set the left box to http. In the webpage box, type en.wikipedia.org/w/ (English Wikipedia) or zh.wikipedia.org/w/ (Chinese Wikipedia). Note that leaving off the /w/ will result in a "root element missing" error.
  • How do I login to AWB with accounts enabled with two-factor authentication?
    You should use a bot password. Despite the name, they aren't just for bots. See Wikipedia:Using AWB with 2FA.

Discussion

AWB not recognising abbreviated/redirected template {{Dis}}

Hallo, this edit seems to show that AWB does not recognised {{Dis}} as equivalent to {{Disambiguation}}, so it has suggested the incorrect addition of {{orphan}} and {{stub}} to a disambiguation page for which neither is appropriate. The redirect was created in Jan 2021 by @Lugnuts:. Sorry if this should have been reported on Phabricator, but attempting to "Check reported tasks" as instructed above by searching for the word "dis" got me nowhere, and I thought someone here might know whether it was an already-reported issue. PamD 09:57, 30 December 2021 (UTC)[reply]

@PamD: I tried this search, couldn't find it, and have logged phab:T298389. -- John of Reading (talk) 10:17, 30 December 2021 (UTC)[reply]
@John of Reading: Thanks. PamD 10:28, 30 December 2021 (UTC)[reply]
Thinking about it, {{dab}} already exists as a 3-letter abbreviation for {{Disambiguation}}, so I'm not sure we needed the new one, {{Dis}}, too! PamD 10:30, 30 December 2021 (UTC)[reply]

GENFIX error

 You are invited to join the discussion at Wikipedia talk:AutoWikiBrowser/General fixes § Error: Moving a commented out category out of a comment. {{u|Sdkb}}talk 19:54, 4 January 2022 (UTC)[reply]

Variable names for common page attributes?

Is there a way to access information about a page that lets you use variables (outside of regular expressions) like %%PAGENAME%% in find and replace or append/prepend text? ~Eliz81(C) 22:40, 9 January 2022 (UTC)[reply]

You can use Help:Magic words#Variables. If you want them to be substituted, add subst: after the opening braces. For example, inserting {{subst:PAGENAME}} in Foo will add the text "Foo" (which won't change even if the page is moved). Certes (talk) 22:51, 9 January 2022 (UTC)[reply]

Running AWB without computer?

As I've been using my AWB bot to churn through the backlogs in its tasks, one restraint has been that AWB only runs when my computer is running. This reduces its efficiency and also isn't great for my privacy. Is there any way to run a virtual machine or PAWS or something so that my bot will keep running 24/7? If not, could development work enable that? I wonder why AWB isn't based in the cloud to start with (I have heard of WP:JWB, but it doesn't seem widely used, and that gives me updatedness concerns). Thanks for the help, {{u|Sdkb}}talk 03:44, 16 January 2022 (UTC)[reply]

JWB is quite widely used and has support for bots and a semi active maintainer. I've tried it for minor bot runs and haven't encountered any issues, so I would consider that an option. --Trialpears (talk) 04:29, 16 January 2022 (UTC)[reply]
And it runs even if you turn off your computer? {{u|Sdkb}}talk 04:45, 16 January 2022 (UTC)[reply]

substituting different for first than the later.

Let's say I have a Wikipedia file that has ABC Z DEF Z GHI Z JKL

I want to substitute M1 for the first Z in the file and M2 for any later occurances of Z? Is this possible? (The user case is the use of [[The Ohio State University]]. I want to change first hits to [[Ohio State University]]<!--The "The" is considered an advertising gimmick--> or similar and later ones to simply [[Ohio State University]].Naraht (talk) 20:16, 21 January 2022 (UTC)[reply]

I didn't see a difference between your two replacement strings, so I have marked them as code above. In any case, you could probably iterate over the block of text using some flavor of Module:String#match and its |match= parameter, in some order. In your code, you could use logic like "replace instance 2, replace instance 3, replace instance 4, etc. up to some large number of instances, then replace instance 1 with the custom code". – Jonesey95 (talk) 21:07, 21 January 2022 (UTC)[reply]
Having an option to replace once (s/a/b/ rather than s/a/b/g) would be one of the most useful and (I expect) easily implemented enhancements to AWB. JWB has the feature, so that may be a better way to run this particular task. Certes (talk) 21:31, 21 January 2022 (UTC)[reply]
@Naraht: Hmmmm...I have an idea I'd like to try. Do you have an example of an article where the multiple links to the same article is not overlinking? GoingBatty (talk) 01:14, 22 January 2022 (UTC)[reply]
I can do this by using more than one find+replace rule. I copied your sample text to User:John of Reading/Sandbox to try it out. My first rule finds Z and replaces it with Z UNIQUEMARKER1, which of course changes all three. My second rule finds UNIQUEMARKER1(?<=UNIQUEMARKER1.*UNIQUEMARKER1) and replaces it with UNIQUEMARKER2, and this changes only the second and third instances. From there, further rules could make your desired changes to the first instance and the later instances. -- John of Reading (talk) 10:01, 22 January 2022 (UTC)[reply]
Another approach is to replace Z((.|\n)*) by M1$1, with Regex and MultiLine flags set, then replace Z by M2. The first replace should match once, consuming the first Z and the rest of the article (which may include Zs) and replacing it by M1 and the rest of the article (with later Zs intact). The second replace should match all Zs except the first Z (which no longer exists, having already been replaced by M1). If pattern Z matches replacement string M1 then more cleverness is needed. This technique seems very inefficient, but hammers the client rather than the server. Certes (talk) 14:05, 22 January 2022 (UTC)[reply]

Database scanner: multiple search criteria

In the database scanner, if I want to scan for multiple search terms using the "text not contains" feature, is there an easy way to do it? Specific example is I want all articles that contain the word "is a species of" and do not contain the words "{{Speciesbox" and "{{Taxonbar". Thanks. –Novem Linguae (talk) 23:05, 22 January 2022 (UTC)[reply]

@Novem Linguae: Hi there! In the "Not contains" field, you could type \{\{(Speciesbox|Taxonbar) and then check the "Regex" box. Hope this helps, and happy editing! GoingBatty (talk) 23:13, 22 January 2022 (UTC)[reply]
Cirrus search (Special:Search/"is a species of" -hastemplate:Speciesbox -hastemplate:Taxonbar) is very fast when it has a phrase to search for. You may also want to exclude other Taxobox templates such as {{Virusbox}}. Certes (talk) 10:47, 23 January 2022 (UTC)[reply]

 You are invited to join the discussion at Wikipedia:Village pump (technical) § AWB bot page blanking. {{u|Sdkb}}talk 19:14, 25 January 2022 (UTC)[reply]

Change

Hi. In spanish, the AWB put a breakline after the "Control de autoridades" or "NF" templates, and there are not breakline there. Is it possible to change it? Thanks. --Vanbasten 23 (talk) 08:35, 3 February 2022 (UTC)[reply]