import elementtree.ElementTree as ET
import urllib
name = name.lower().replace(' ','%20')
id_search = 'http://services.tvrage.com/myfeeds/search.php?key=ag6txjP0RH4m0c8sZk2j&show='+name
tree = ET.parse(urllib.urlopen(id_search))
root = tree.getroot()
showid = root.find('showid')
url = 'http://services.tvrage.com/myfeeds/episode_list.php?key=ag6txjP0RH4m0c8sZk2j&sid='+str(showid)
For some reason the showid
comes up as none. Any help on this would be great. I'm using this on xbmc addon to scrape the showid.
Here is the link http://services.tvrage.com/myfeeds/search.php?key=ag6txjP0RH4m0c8sZk2j&show=black%20sails