Utente:BimBot/Scripts: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
→superenalotto.py: fix |
m →lotto.py: fixed |
||
Riga 540:
<source lang="python">
##!/usr/bin/python
# -*- coding: utf-8 -*-
Riga 581:
now = datetime.datetime.utcnow()
urlo = "http://www.
wikipedia.output(u'Prendo la pagina dal server...')
try:
Riga 594:
return
htmlText = htmlText.decode('utf-8')
bloccoTipo = '<tr.*?>\s*<td.*?>\s*%s\s*</td>\s*<td.*?>\s*(\d{1,2})\s*</td>\s*<td.*?>\s*(\d{1,2})\s*</td>\s*<td.*?>\s*(\d{1,2})\s*</td>\s*<td.*?>\s*(\d{1,2})\s*</td>\s*<td.*?>\s*(\d{1,2})\s*</td>\s*</tr>'
data = re.search('<h4
nazionale = re.search(bloccoTipo % '
page = wikipedia.Page(wikipedia.getSite(code='it', fam='wikinews'), "Estrazione del Lotto, " + data.group(1) + " " + str(int(data.group(2))) + " " + data.group(3) + " " + data.group(4))
if page.exists():
Riga 654:
=== <tt>modello_lotto.txt</tt> ===
<pre>
{| {{prettytable|width=400px|align=center}}
|-
Riga 697:
{{fonte
|autore=
|url=http://www.lottomatica.it/lotto/estrazioni/estrazioni_dettaglio.
|titolo=Lotto: Estrazioni del #giorno-#mese-#anno
|agenzia=Lottomatica
|