#140 Ajouté par Laoviel il y a 5 ans
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")
Edité 2 fois | Dernière édition par Laoviel (il y a 5 ans).
---
#141 Ajouté par Tgwaste il y a 2 ans
Dernière édition par Tgwaste (il y a 2 ans).
powered by ryzom-api