#140 Added by Laoviel 6 years ago
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")
Edited 2 times | Last edited by Laoviel (6 years ago)
---
#141 Added by Tgwaste 2 years ago
Last edited by Tgwaste (2 years ago)
powered by ryzom-api