#140 Añadido por Laoviel 5 años hace
import sysimport requestsfrom bs4 import BeautifulSoupurl = "http://api.ryzom.com/character.php?apikey=xxxxxxxxxx"r = requests.get(url)data = r.textsoup = BeautifulSoup(data, 'xml')#find all itemsitems = soup.find("fame").find_all()for item in items: print(item.name+" "+item.text+"\n")
Editado 2 veces | Última edición por Laoviel (5 años hace)
---
#141 Añadido por Tgwaste 2 años hace
Última edición por Tgwaste (2 años hace)
powered by ryzom-api