Utente:BimBot/Scripts: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m Fix, replaced: <source → <syntaxhighlight (17), </source → </syntaxhighlight (17) |
|||
(Una versione intermedia di un altro utente non mostrate) | |||
Riga 2:
Copiate gente, copiate! (<small>Che poi va a fuoco il computer...</small>) :-D
== <
<
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Riga 71:
finally:
wikipedia.stopme()
</syntaxhighlight>
== <
Prende le pagine da [[Speciale:Lonelypages]], verifica che siano veramente orfane e inserisce l'avviso in quelle che non lo hanno già.
Script spostato [http://www.botwiki.sno.cc/wiki/Python:Lonelypages.py qui].
== <
Questo script fa semplicemente un edit in una pagina.
In verità serve per scovare i proxy aperti, agendo da sloggati.
Riga 83:
Utilizzabile solo da personale addestrato ;-)
<
#! -*- coding: utf-8 -*-
Riga 98:
pagina.put(newtxt)
wikipedia.stopme()
</syntaxhighlight>
== <
Questo script serve per aggiornare le [[Progetto:Coordinamento/Statistiche manutenzioni|statistiche del lavoro sporco]].
<
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Riga 159:
finally:
wikipedia.stopme()
</syntaxhighlight>
== <
Questo script serve per aggiornare le statistiche manutenzioni dei progetti tematici. Andrebbe generalizzato ed unito con lavorosporco.py.
<
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Riga 208:
finally:
wikipedia.stopme()
</syntaxhighlight>
== <
Questo script serve per aggiungere <
<
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Riga 248:
finally:
wikipedia.stopme()
</syntaxhighlight>
== <
<
#!/usr/bin/env python
# -*- utf-8 -*-
Riga 289:
finally:
wikipedia.stopme()
</syntaxhighlight>
== <
Script usato per aggiornare le citazioni del giorno sulla pagina principale.
<
#!/usr/bin/python
# -*- coding: utf-8 -*-
Riga 349:
finally:
wikipedia.stopme()
</syntaxhighlight>
== <
Aggiorna il template contenente il numero di voci in vetrina.
<
# -*- coding: utf8 -*-
import wikipedia, catlib
Riga 390:
finally:
wikipedia.stopme()
</syntaxhighlight>
== <
<
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Riga 437:
finally:
wikipedia.stopme()
</syntaxhighlight>
== <
<
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Riga 506:
finally:
wikipedia.stopme()
</syntaxhighlight>
== <
Prende le ultime notizie da 'news e le sbatte su 'pedia.
<
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Riga 582:
finally:
wikipedia.stopme()
</syntaxhighlight>
== <
<
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Riga 666:
finally:
wikipedia.stopme()
</syntaxhighlight>
== <
<
# -*- coding: utf-8 -*-
import wikipedia, re, sys, codecs
Riga 731:
#K07B19V 15.7 0.15 K06CV 19.17898 347.71274 101.16774 10.08579 0.0550460 0.19108058 2.9853254 E2007-B48 13 1 16 days 0.37 MPC 0000 2007 BV19 20070124
</syntaxhighlight>
=== <
<pre>
{{S|asteroidi}}
Riga 758:
</pre>
== <
<
# -*- coding: utf-8 -*-
import wikipedia, re, commands
Riga 799:
finally:
wikipedia.stopme()
</syntaxhighlight>
== <
<
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Riga 890:
finally:
wikipedia.stopme()
</syntaxhighlight>
== <code>vocicorrelate.py</code> ==
<
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Riga 981:
finally:
wikipedia.stopme()
</syntaxhighlight>
== Eliminazione parametro "Stato" dal [[Template:Edificio religioso]] ==
Codice da inserire in <
<
import re
Riga 1 011:
}
}
</syntaxhighlight>
|