Return to Snippet

Revision: 27676
at June 20, 2010 14:06 by heellxz


Initial Code
import urllib

############################
############################
####    ####    ####    ####
####    ####    ####    ####
####    ####    ####    ####
####            ####    ####
####            ####    ####
####    ####    ############
####    ####    ####    ####
####    ####    ####    ####
############################
############################

hoteles = ["es","com","fr","fi","ch","it","se","nl","de","no","dk","com.br"]

print "Habbo Build SWF Scanner.\nBasado en la idea de Physlet\n"

for i in hoteles:
    url = urllib.urlopen("http://www.habbo." + i + "/")
    a = url.read()
    if i == "com.br":
        build = a[a.find('<meta name="build" content="') + 28 : a.find(" - br")]
    else:
        build = a[a.find('<meta name="build" content="') + 28 : a.find(" - " + i)]
    print "www.habbo." + i + ": " + build

Initial URL

                                

Initial Description
Scanner para ver facilmente todas las builds utilizadas en todos los hoteles de Habbo, el Print se podria cambiar por una variable auxiliar para grabarla en un archivo en forma de log.

Initial Title
Habbo Build SWF Scanner

Initial Tags

                                

Initial Language
Python