Exemple #1
0
    "cow":cow.Cowacter(),
    "hellokitty":cow.HelloKitty(),
    "bunny":cow.Bunny(),
    "cheese":cow.Cheese(),
    "milk":cow.Milk(),
    "bong":cow.BongCow(),
    "eyes":cow.Eyes(),
    "legitvore":cow.HeadInCow(),
    "666":cow.Satanic(),
    "frogs":cow.BudFrogs(),
    "daemon":cow.Daemon(),
    "moofasa":cow.Moofasa(),
    "mutilated":cow.Mutilated(),
    "skeleton":cow.Skeleton(),
    "small":cow.Small(),
    "excusemewhatthefuck":cow.Sodomized(),
    "garfield":cow.Stimpy(),
    "tux":cow.Tux(),
    "vader":cow.Vader()
}

def write_file(filename, contents):
    with open(filename, "w", encoding="utf8") as file:
        for item in contents:
            file.write(str(item))
            file.write("\n")

def download_file(url, destination):
    req = requests.get(url)
    file = open(destination, "wb")
    for chunk in req.iter_content(100000):
Exemple #2
0
    "cow": cow.Cowacter(),
    "hellokitty": cow.HelloKitty(),
    "bunny": cow.Bunny(),
    "cheese": cow.Cheese(),
    "milk": cow.Milk(),
    "bong": cow.BongCow(),
    "eyes": cow.Eyes(),
    "legitvore": cow.HeadInCow(),
    "666": cow.Satanic(),
    "frogs": cow.BudFrogs(),
    "daemon": cow.Daemon(),
    "moofasa": cow.Moofasa(),
    "mutilated": cow.Mutilated(),
    "skeleton": cow.Skeleton(),
    "small": cow.Small(),
    "sodomized": cow.Sodomized(),
    "garfield": cow.Stimpy(),
    "tux": cow.Tux(),
    "vader": cow.Vader()
}


def write_file(filename, contents):
    with open(filename, "w", encoding="utf8") as file:
        for item in contents:
            file.write(str(item))
            file.write("\n")


def download_file(url, destination):
    req = requests.get(url)
Exemple #3
0
 def send400(self):
     self.send_response(400)
     self.end_headers()
     buttcow = cow.Sodomized()
     msg = buttcow.milk('400 ERROR!!! BAD REQUEST!!!')
     self.wfile.write(msg.encode())