def nameToDB(name): url = "http://www.vorname.com/name," + name + ".html" html = getHtml(url) modern = attributeValue(html, "Modern") jung = attributeValue(html, "Jung") intelligent = attributeValue(html, "Intelligent") attraktiv = attributeValue(html, "Attraktiv") sportlich = attributeValue(html, "Sportlich") extrovertiert = attributeValue(html, "Extrovertiert") sympathisch = attributeValue(html, "Sympathisch") bekannt = attributeValue(html, "Bekannt") lustig = attributeValue(html, "Lustig") freundlich = attributeValue(html, "Freundlich") wohlklingend = attributeValue(html, "Wohlklingend") db.propertyToDB( name, modern, jung, intelligent, attraktiv, sportlich, extrovertiert, sympathisch, bekannt, lustig, freundlich, wohlklingend, )
def onlyNameToDB(name): db.propertyToDB(name, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)