Closed simison closed 4 years ago
https://gist.github.com/anonymous/478d83dddd6c780e9e34 Latest version. At this point every bug becomes a feature ;)
Necessary article migration script improvements for each processed article:
<map ... />
tagsInfobox Country
templateInfobox Country
templateInfobox Country
template (could be at GeoData, too)Infobox Country
template to the bottom of articleSee also #78 #121
Ideas to keep bot fail-proof:
Idea: possibly use OrderedDict to preserve logical order of the fields in the generated templates.
Spot migration necessary improvements:
not trivial as our country names sometimes differ from Geodata's
Perhaps that iso-code added to countries would help at that point, though?
I'd just keep it simple. Get countryname from the geodata -> check if article exists with that name -> add it to point. Otherwise leave empty? A few "USA/Russian federation" if/elses to capture most common weirdos.
To do (based on on last night's beta deployment issues):
export LC_ALL='en_US.utf8'
before running botset -e
)Czechia
--> Czech Republic
for spot/page lookups/var/www/scripts/bot/bot_install.sh: line 23: cd: .cache: No such file or directory
Cloning into '.cache'...
remote: Counting objects: 4625, done.
remote: Total 4625 (delta 0), reused 0 (delta 0), pack-reused 4625
Receiving objects: 100% (4625/4625), 5.73 MiB | 1.24 MiB/s, done.
Resolving deltas: 100% (4451/4451), done.
/var/www/scripts/bot/bot_install.sh: line 32: cd: pywikibot-core: No such file or directory
Cloning into 'pywikibot-core'...
remote: Counting objects: 38872, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 38872 (delta 2), reused 0 (delta 0), pack-reused 38861
Receiving objects: 100% (38872/38872), 32.85 MiB | 13.14 MiB/s, done.
Resolving deltas: 100% (29237/29237), done.
Submodule 'i18n' (https://gerrit.wikimedia.org/r/p/pywikibot/i18n.git) registered for path 'scripts/i18n'
Cloning into '/var/www/scripts/bot/pywikibot-core/scripts/i18n'...
Submodule path 'scripts/i18n': checked out 'cd138ef95047e2b4e304d934f640f90e1abf68a3'
Password for user Hitchbot on hitchwiki:hitchwiki (no characters will be shown):
Logging in to hitchwiki:hitchwiki as Hitchbot
WARNING: API warning (login): Main-account login via action=login is deprecated and may stop working without warning. To continue login with action=login, see [[Special:BotPasswords]]. To safely continue using main-account login, see action=clientlogin.
WARNING: /var/www/scripts/bot/pywikibot-core/pywikibot/tools/__init__.py:1716: UserWarning: File /var/www/scripts/bot/pywikibot.lwp had 644 mode; converted to 600 mode.
Page [[15 (Denmark)]] saved
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Category:
entries out of introduction__TOC__
and the like out of introduction"\n|"
in spot descriptions and city/area/country introductionsspotmigrate
and extramigrate
if necessary tables don't exist
#1513. Errachidia
http://beta.hitchwiki.org/en/Errachidia
Use {{City}} template
+++ @@ -1,10 +1,16 @@ -{{Infobox Location -|country = Morocco -|state = Meknès-Tafilalet -|pop = 95 265 -}} +{{City +|MajorRoads= +|Countries=Morocco +|Introduction=
''Errachidia''' is a very relaxed city in the southeast of [[Morocco]]. Many tourists pass by here on their way to Merzouga, but Errachidia itself is not very touristy. + +|LicencePlate= +|Location=31.9314,-4.42663 +|Population=0 +|AdministrativeDivision=Drâa-Tafilalet +|Bbox=-4.4768859,31.9077638,-4.3753052,31.9623573 +}}
== Hitchhiking out ==
Page [[Errachidia]] saved
aka "the neverending task" :)
remove tables created by extensions we don't use anymore
We can do this manually.
We'll need to migrate current wiki articles into a new format (semantic stuff) and merge hitchwiki maps into the wiki.
<map lat='48.83398957668602' lng='2.34283447265625' zoom='10' view='0' float='right'/>
tags{{legend}}
And this stuff in Template:Infobox_Location:
...most of it we can get for Geonames anyway, though.