2014-05-26, 22:34
@nightflyer
Thanks for your hints! I fixed almost everything, but I am trying to parse the shows list with BeautifulSoup.
This is the problem:
This regex should work, but it is not working.
I need to get all the li tags that contain a class with value first-child or last-child or empty.
Any help or idea?
Cheers,
Goph
Thanks for your hints! I fixed almost everything, but I am trying to parse the shows list with BeautifulSoup.
This is the problem:
Code:
show_lists = soup.findAll('li',class_=re.compile("(first-child|last-child|)"))
This regex should work, but it is not working.
I need to get all the li tags that contain a class with value first-child or last-child or empty.
Any help or idea?
Cheers,
Goph