adapt to new tele loisir site
This commit is contained in:
parent
d4f4c63d00
commit
d3f4de1ff8
@ -38,7 +38,7 @@ class Emmission(object):
|
|||||||
linkchaine=self.html.find(text=re.compile(re.escape(strsearch)))
|
linkchaine=self.html.find(text=re.compile(re.escape(strsearch)))
|
||||||
if linkchaine == None:
|
if linkchaine == None:
|
||||||
return "can't find channel"
|
return "can't find channel"
|
||||||
link = linkchaine.parent.parent.find_next_sibling().find("a")
|
link = linkchaine.parent.parent.find_next_sibling().find_next_sibling().find("a")
|
||||||
href = link['href']
|
href = link['href']
|
||||||
response = urllib.request.urlopen(href)
|
response = urllib.request.urlopen(href)
|
||||||
parse=BeautifulSoup(response.read(),"html.parser")
|
parse=BeautifulSoup(response.read(),"html.parser")
|
||||||
|
Loading…
Reference in New Issue
Block a user