Utente:BimBot/Scripts: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
→‎wikinews_palinsesto2.py: hanno cambiato un po' il sito
Riga 870:
return
numeri = re.search("<TABLE.*?>\s*<tr>\s*<td.*?>\s*<a.*?>\s*<nobr>\s*<font.*?>\s*(\d+)&nbsp;-&nbsp;\s*(\d+)&nbsp;-&nbsp;\s*(\d+)&nbsp;-&nbsp;\s*(\d+)&nbsp;-&nbsp;\s*(\d+)&nbsp;-&nbsp;\s*(\d+) &nbsp; numero jolly &nbsp; (\d+)s*</font>\s*</nobr>\s*</a>\s*</td>\s*</tr>\s*</table>", htmlText)
superstarjolly = re.search("<TABLEtd.*?>background=\s*<tr>"/giochi/se2006/hp2009/img/BTN_JOLLY.gif\s*<td".*?>\s*<a.*?>SuperStar</a>\s*</td>\s*<tdfont.*?>\s*<a.*?b>(\d+)</ab>\s+</tdfont>\s*</tra>\s*</tabletd>", htmlText)
concorsosuperstar = re.search("<fonttd.*?background=\"/giochi/se2006/hp2009/img/BTN_SUPERSTAR.gif\".*?>\s*<fonta.*?>Concorso n. (\d+) di (<font.*?) (\d+)/><b>(\d+)</(\d+)b></font></a>\s*</td>", htmlText)
concorso = re.search("<font.*?><font.*?><b>Concorso n. (\d+) di (.*?) (\d+)/(\d+)/(\d+)</b></font></a>", htmlText)
montepremiparz = re.search("<td><a.*?><font class=testo8.*?>Del Concorso</a></td>\s*<td.*?><a.*?><font class=testo8.*?>(.*?) euro</font></a></td>", htmlText)
jackpot = re.search("<td><a.*?><font class=testo8.*?>\s*Riporto Jackpot conc. precedente</a>\s*</td>\s*<td.*?><a.*?><font class=testo8.*?>(.*?) euro</font></a></td>", htmlText)
montepremitot = re.search("<td><a.*?><font class=testo8.*?><b>Montepremi totale del concorsoTotale</a></td>\s*<td.*?><a.*?><font class=testo8.*?><b>(.*?) euro</font></a></td>", htmlText)
bloccoQuote = "<tr.*?>\s*<td.*?><a.*?><font class=testo8.*?>(.*?)</font></a></td>\s*<td.*?><a.*?><font class=testo8.*?>&quot;%s&quot;</a></td>\s*<td.*?><a.*?><font class=testo8.*?>(.*?)</font></a></td>\s*</tr>"
Line 896 ⟶ 897:
'#num-5': numeri.group(5),
'#num-6': numeri.group(6),
'#num-jolly': numerijolly.group(71),
'#num-superstar': superstar.group(1),