« Utilisateur:Crochet.david.bot/Scripts » : différence entre les versions

Contenu supprimé Contenu ajouté
→‎User_fixes.py : correction errreur
→‎Script : mise à jour
Ligne 5 :
#!/bin/bash
 
gnome-terminal --profile='Robot' \
VERT="\\033[1;32m"
echo--tab --title="$ROUGE Tâche n° 181/7183 $VERT fix:R $NORMALA" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"RA"' \
NORMAL="\\033[0;39m"
echo--tab --title="$ROUGE Tâche n° 192/7183 $VERT fix:S $NORMALB" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"SB"' \
ROUGE="\\033[1;31m"
echo--tab --title="$ROUGE Tâche n° 333/7183 $VERT fix:Mois $NORMALC" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"MoisC"' \
ROSE="\\033[1;35m"
echo--tab --title="$ROUGE Tâche n° 324/7183 $VERT fix:Annees $NORMALD" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"AnneesD"' \
BLEU="\\033[1;34m"
echo--tab --title="$ROUGE Tâche n° 395/7183 $VERT fix:Unites $NORMALE" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"UnitesE"' \
BLANC="\\033[0;02m"
echo--tab --title="$ROUGE Tâche n° 356/7183 $VERT fix:Siecles $NORMALF" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"SieclesF"' \
BLANCLAIR="\\033[1;08m"
echo--tab --title="$ROUGE Tâche n° 367/7183 $VERT fix:encodage $NORMALG" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"encodageG"' \
JAUNE="\\033[1;33m"
echo--tab --title="$ROUGE Tâche n° 348/7183 $VERT fix:Toponymie $NORMALH" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"ToponymieH"' \
CYAN="\\033[1;36m"
echo--tab --title="$ROUGE Tâche n° 379/7183 $VERT fix:Phonetique $NORMALI" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"PhonetiqueI"' \
$compteur == '0'
echo--tab --title="$ROUGE Tâche n° 110/7183 $VERT fix:A $NORMALJ" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"AJ"' \
echo--tab --title="$ROUGE Tâche n° 211/7183 $VERT fix:B $NORMALK" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"BK"' \
echo--tab --title="$ROUGE Tâche n° 312/7183 $VERT fix:C $NORMALL" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"CL"' \
echo--tab --title="$ROUGE Tâche n° 413/7183 $VERT fix:D $NORMALM" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"DM"' \
echo--tab --title="$ROUGE Tâche n° 514/7183 $VERT fix:E $NORMALN" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"EN"' \
echo--tab --title="$ROUGE Tâche n° 615/7183 $VERT fix:F $NORMALO" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"FO"' \
echo--tab --title="$ROUGE Tâche n° 716/7183 $VERT fix:G $NORMALP" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"GP"' \
echo--tab --title="$ROUGE Tâche n° 817/7183 $VERT fix:H $NORMALQ" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"HQ"' \
echo--tab --title="$ROUGE Tâche n° 918/7183 $VERT fix:I $NORMALR" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"IR"' \
echo--tab --title="$ROUGE Tâche n° 1019/7183 $VERT fix:J $NORMALS" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"JS"' \
echo--tab --title="$ROUGE Tâche n° 1120/7183 $VERT fix:K $NORMALT" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"KT"' \
echo--tab --title="$ROUGE Tâche n° 1221/7183 $VERT fix:L $NORMALU" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"LU"' \
echo--tab --title="$ROUGE Tâche n° 1322/7183 $VERT fix:M $NORMALV" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"MV"' \
echo--tab --title="$ROUGE Tâche n° 1423/7183 $VERT fix:N $NORMALW" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"NW"' \
echo--tab --title="$ROUGE Tâche n° 1524/7183 $VERT fix:O $NORMALY" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"OY"' \
echo--tab --title="$ROUGE Tâche n° 1625/7183 $VERT fix:P $NORMALX" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"PX"' \
echo--tab --title="$ROUGE Tâche n° 1726/7183 $VERT fix:Q $NORMALZ" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"QZ"'
 
echo "$ROUGE Tâche n° 18/71 $VERT fix:R $NORMAL" ; python replace.py -lang:"fr" -recentchanges -fix:"R"
gnome-terminal --profile='Robot' \
echo "$ROUGE Tâche n° 19/71 $VERT fix:S $NORMAL" ; python replace.py -lang:"fr" -recentchanges -fix:"S"
echo--tab --title="$ROUGE Tâche n° 2027/71 $VERT83 fix:TSyntaxe $NORMALWiki" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"TSyntaxe Wiki"' \
echo--tab --title="$ROUGE Tâche n° 2128/71 $VERT83 fix:USyntaxe $NORMALWiki" ; --command='python replace.py -lang:"frbeta" -recentchanges -fix:"USyntaxe Wiki"' \
echo--tab --title="$ROUGE Tâche n° 2229/71 $VERT83 fix:V $NORMALwikilienbeta" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"Vwikilienbeta"' \
echo--tab --title="$ROUGE Tâche n° 2330/71 $VERT83 fix:W $NORMALDates" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"WDates"' \
echo--tab --title="$ROUGE Tâche n° 2431/71 $VERT83 fix:Y $NORMALwikilien" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"Ywikilien"' \
echo--tab --title="$ROUGE Tâche n° 2532/71 $VERT83 fix:XRegles $NORMALgrammaticales" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"XRegles grammaticales"' \
echo--tab --title="$ROUGE Tâche n° 2633/71 $VERT83 fix:Z $NORMALAnnees" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"ZAnnees"' \
echo--tab --title="$ROUGE Tâche n° 2734/71 $VERT83 fix:Syntaxe Wiki $NORMALMois" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"Syntaxe WikiMois"' \
echo--tab --title="$ROUGE Tâche n° 2835/71 $VERT83 fix:wikilienbeta $NORMALToponymie" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"wikilienbetaToponymie"' \
echo--tab --title="$ROUGE Tâche n° 2936/7183 $VERT fix0fix:Dates $NORMALSiecles" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"DatesSiecles"' \
echo--tab --title="$ROUGE Tâche n° 3037/71 $VERT83 fix:wikilien $NORMALencodage" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"wikilienencodage"' \
echo--tab --title="$ROUGE Tâche n° 3138/71 $VERT83 fix:Regles grammaticales $NORMALencodage" ; --command='python replace.py -lang:"frbeta" -recentchanges -fix:"Regles grammaticalesencodage"' \
--tab --title="Tâche n° 39/83 fix:Phonetique" --command='python replace.py -lang:"fr" -recentchanges -fix:"Phonetique"' \
echo--tab --title="$ROUGE Tâche n° 3840/71 $VERT83 fix:Regles orthographiques generales $NORMAL" ; --command='python replace.py -lang:"fr" -recentchanges -fix:"Regles orthographiques generales"' \
--tab --title="Tâche n° 41/83 fix:Unites" --command='python replace.py -lang:"fr" -recentchanges -fix:"Unites"'
#echo "$VERT fix:syntaxechapitre $NORMAL" ; python replace.py -lang:"fr" -recentchanges -fix:"syntaxechapitre"
echo "$ROUGE Tâche n° 31/71 $VERT fix:Regles grammaticales $NORMAL" ; python replace.py -lang:"fr" -recentchanges -fix:"Regles grammaticales"
echo "$ROUGE Tâche n° 32/71 $VERT fix:Annees $NORMAL" ; python replace.py -lang:"fr" -recentchanges -fix:"Annees"
#echo "$VERT fix:syntaxelecon $NORMAL" ; python replace.py -lang:"fr" -recentchanges -fix:"syntaxelecon"
echo "$ROUGE Tâche n° 33/71 $VERT fix:Mois $NORMAL" ; python replace.py -lang:"fr" -recentchanges -fix:"Mois"
echo "$ROUGE Tâche n° 34/71 $VERT fix:Toponymie $NORMAL" ; python replace.py -lang:"fr" -recentchanges -fix:"Toponymie"
echo "$ROUGE Tâche n° 35/71 $VERT fix:Siecles $NORMAL" ; python replace.py -lang:"fr" -recentchanges -fix:"Siecles"
echo "$ROUGE Tâche n° 36/71 $VERT fix:encodage $NORMAL" ; python replace.py -lang:"fr" -recentchanges -fix:"encodage"
echo "$ROUGE Tâche n° 37/71 $VERT fix:Phonetique $NORMAL" ; python replace.py -lang:"fr" -recentchanges -fix:"Phonetique"
echo "$ROUGE Tâche n° 38/71 $VERT fix:Regles orthographiques generales $NORMAL" ; python replace.py -lang:"fr" -recentchanges -fix:"Regles orthographiques generales"
echo "$ROUGE Tâche n° 39/71 $VERT fix:Unites $NORMAL" ; python replace.py -lang:"fr" -recentchanges -fix:"Unites"
 
gnome-terminal --profile='Robot' \
day=$(date +%S)%7
if [ $day--tab --title= "0" ] ; then echo "$ROUGE Tâche n° 4042/71 $VERT83 fix:interwiki wikipedia $NORMAL" ; --command='python interwiki.py -family:"wikipedia" -prefixindex:"user:Crochet.david"' ; fi\
if [ $day--tab --title= "1" ] ; then echo "$ROUGE Tâche n° 4043/71 $VERT83 fix:interwiki wikiquote $NORMAL" ; --command='python interwiki.py -family:"wikiquote" -prefixindex:"user:Crochet.david"' ; fi\
if [ $day--tab --title= "2" ] ; then echo "$ROUGE Tâche n° 4044/71 $VERT83 fix:interwiki wikinews $NORMAL" ; --command='python interwiki.py -family:"wikinews" -prefixindex:"user:Crochet.david"' ; fi\
if [ $day--tab --title= "3" ] ; then echo "$ROUGE Tâche n° 4045/71 $VERT83 fix:interwiki wikibooks $NORMAL" ; --command='python interwiki.py -family:"wikibooks" -prefixindex:"user:Crochet.david"' ; fi\
if [ $day--tab --title= "4" ] ; then echo "$ROUGE Tâche n° 4046/71 $VERT83 fix:interwiki wikiversity $NORMAL" ; --command='python interwiki.py -family:"wikiversity" -prefixindex:"user:Crochet.david"' ; fi\
if [ $day--tab --title= "5" ] ; then echo "$ROUGE Tâche n° 4047/71 $VERT83 fix:interwiki wikisource $NORMAL" ; --command='python interwiki.py -family:"wikisource" -prefixindex:"user:Crochet.david"' ; fi\
if [ $day--tab --title= "6" ] ; then echo "$ROUGE Tâche n° 4048/71 $VERT83 fix:interwiki wiktionary $NORMAL" ; --command='python interwiki.py -family:"wiktionary" -prefixindex:"user:Crochet.david" ; fi'
 
gnome-terminal --profile='Robot' \
echo--tab --title="$ROUGE Tâche n° 6949/71 $VERT83 fix:interwiki wikiversity beta $NORMAL" ; --command='python interwiki.py -lang:"beta" -localonly -recentchanges -async -cleanup -auto -quiet' \
--tab --title="Tâche n° 50/83 fix:cosmeticchanges wikiversity beta" --command='python cosmetic_changes.py -lang:"beta" -recentchanges -async' \
--tab --title="Tâche n° 51/83 fix:cosmeticchanges wikiversity fr" --command='python cosmetic_changes.py -lang:"fr" -recentchanges -async'
 
gnome-terminal --profile='Robot' \
$compteur == '40'
--tab --title="Tâche n° 52/83 fix:interwiki wikiversity ar" --command='python interwiki.py -lang:"ar" -recentchanges -async -cleanup -auto -quiet' \
for lang in 'ar' 'cs' 'de' 'el' 'en' 'es' 'fi' 'fr' 'it' 'ja' 'pt' 'ru' 'sl' 'sv'
--tab --title="Tâche n° 53/83 fix:interwiki wikiversity cs" --command='python interwiki.py -lang:"cs" -recentchanges -async -cleanup -auto -quiet' \
do
--tab --title="Tâche n° 54/83 fix:interwiki wikiversity de" --command='python interwiki.py -lang:"de" -recentchanges -async -cleanup -auto -quiet' \
$compteur++
echo--tab --title="$ROUGE Tâche n° $comtpeur55/71 $VERT83 fix:interwiki wikiversity $lang $NORMALel" ; --command='python interwiki.py -lang:"$langel" -recentchanges -async -cleanup -auto -quiet' \
--tab --title="Tâche n° 56/83 fix:interwiki wikiversity en" --command='python interwiki.py -lang:"en" -recentchanges -async -cleanup -auto -quiet' \
$compteur++
echo--tab --title="$ROUGE Tâche n° $compteur57/71 $VERT83 fix:redirect probleminterwiki wikiversity $lang $NORMALes" ; --command='python redirectinterwiki.py both -api -lang:"$langes" -recentchanges -async -cleanup -auto -quiet' \
--tab --title="Tâche n° 58/83 fix:interwiki wikiversity fi" --command='python interwiki.py -lang:"fi" -recentchanges -async -cleanup -auto -quiet' \
done
--tab --title="Tâche n° 59/83 fix:interwiki wikiversity fr" --command='python interwiki.py -lang:"fr" -recentchanges -async -cleanup -auto -quiet' \
--tab --title="Tâche n° 60/83 fix:interwiki wikiversity it" --command='python interwiki.py -lang:"it" -recentchanges -async -cleanup -auto -quiet' \
--tab --title="Tâche n° 61/83 fix:interwiki wikiversity ja" --command='python interwiki.py -lang:"ja" -recentchanges -async -cleanup -auto -quiet' \
--tab --title="Tâche n° 62/83 fix:interwiki wikiversity ko" --command='python interwiki.py -lang:"ko" -recentchanges -async -cleanup -auto -quiet' \
--tab --title="Tâche n° 62/83 fix:interwiki wikiversity pt" --command='python interwiki.py -lang:"pt" -recentchanges -async -cleanup -auto -quiet' \
--tab --title="Tâche n° 64/83 fix:interwiki wikiversity ru" --command='python interwiki.py -lang:"ru" -recentchanges -async -cleanup -auto -quiet' \
--tab --title="Tâche n° 65/83 fix:interwiki wikiversity sl" --command='python interwiki.py -lang:"sl" -recentchanges -async -cleanup -auto -quiet' \
--tab --title="Tâche n° 66/83 fix:interwiki wikiversity sv" --command='python interwiki.py -lang:"sv" -recentchanges -async -cleanup -auto -quiet' \
--tab --title="Tâche n° 67/83 fix:interwiki wikiversity beta" --command='python interwiki.py -lang:"beta" -recentchanges -async -cleanup -auto -quiet'
 
gnome-terminal --profile='Robot' \
echo "$ROUGE Tâche n° 69/71 $VERT fix:interwiki wikiversity beta $NORMAL" ; python interwiki.py -lang:"beta" -localonly -recentchanges -async -cleanup -auto -quiet
echo--tab --title="$ROUGE Tâche n° 7068/71 $VERT83 fix:cosmeticchangesredirect wikiversityproblem betawikiversity $NORMALar" ; echo y| --command='python cosmetic_changesredirect.py both -api -lang:"betaar" -recentchanges -async'
echo--tab --title="$ROUGE Tâche n° 7169/71 $VERT83 fix:cosmeticchangesredirect wikiversityproblem frwikiversity $NORMALcs" ; echo y| --command='python cosmetic_changesredirect.py both -api -lang:"frcs" -recentchanges -async'
--tab --title="Tâche n° 70/83 fix:redirect problem wikiversity de" --command='python redirect.py both -api -lang:"de"'
--tab --title="Tâche n° 71/83 fix:redirect problem wikiversity el" --command='python redirect.py both -api -lang:"el"'
--tab --title="Tâche n° 72/83 fix:redirect problem wikiversity en" --command='python redirect.py both -api -lang:"en"'
--tab --title="Tâche n° 73/83 fix:redirect problem wikiversity es" --command='python redirect.py both -api -lang:"es"'
--tab --title="Tâche n° 74/83 fix:redirect problem wikiversity fi" --command='python redirect.py both -api -lang:"fi"'
--tab --title="Tâche n° 75/83 fix:redirect problem wikiversity fr" --command='python redirect.py both -api -lang:"fr"'
--tab --title="Tâche n° 76/83 fix:redirect problem wikiversity it" --command='python redirect.py both -api -lang:"it"'
--tab --title="Tâche n° 77/83 fix:redirect problem wikiversity ja" --command='python redirect.py both -api -lang:"ja"'
--tab --title="Tâche n° 78/83 fix:redirect problem wikiversity ko" --command='python redirect.py both -api -lang:"ko"'
--tab --title="Tâche n° 79/83 fix:redirect problem wikiversity pt" --command='python redirect.py both -api -lang:"pt"'
--tab --title="Tâche n° 80/83 fix:redirect problem wikiversity ru" --command='python redirect.py both -api -lang:"ru"'
--tab --title="Tâche n° 81/83 fix:redirect problem wikiversity sl" --command='python redirect.py both -api -lang:"sl"'
--tab --title="Tâche n° 82/83 fix:redirect problem wikiversity sv" --command='python redirect.py both -api -lang:"sv"'
--tab --title="Tâche n° 83/83 fix:redirect problem wikiversity beta" --command='python redirect.py both -api -lang:"beta"'
</source>