Wikipedia:CSVLoader/Find and replace: Difference between revisions
Content deleted Content added
m Disambiguate Notepad (software) to Microsoft Notepad using popups |
precision |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1:
== Using AWB to find and replace
This option is very useful for collecting data related to articles, infoboxes, images, etc. in a spreadsheet, then processing and or cleaning it in the spreadsheet and reuploading results back to articles or images.
Line 6:
#*If csv file contains non-english characters than it needs to be saved in [[UTF-8]] format. One way to do this is to change .csv file extension to .txt, and open resulting file in [[Microsoft Notepad|Notepad]] and use ''save as'' option to save in [[UTF-8]] format.
# Copy CSVLoader.dll to the AWB directory.
# Log in to AWB (<u>with bot account</u>)
# Create replacement rules in ''option'' tab ''Normal settings'' button. See [[:File:Wpcsv-5-6-10-1.JPG|here]] for examples. All replacement rules must be related to CSV file. You can use ''option'' tab ''Advanced settings'' button to create additional rules not related to CSV file.
# Select "CSV Loader plugin" from the Plugins menu. In the CSV loader settings box, (see example [[:File:Wpcsv-5-6-10-2.JPG|here]])
#* In ''Text File'' area select the CSV file that will be used.
#* In ''Options'' area check "Find and Replace" and
#* In ''Column Headers'' area enter the column headers (enclose them with ## (or any other symbol), example: <code><nowiki>##city##,##district##,##state##,##country##</nowiki></code>). Do ''not'' include spaces between around the commas.
#* Leave ''Article Text'' area unchanged
|