modify scripts
This commit is contained in:
@ -479,11 +479,18 @@ def parse_page_movie(soup, href, title):
|
|||||||
performer["name"] = link.text.strip()
|
performer["name"] = link.text.strip()
|
||||||
performer["href"] = host_url + link["href"]
|
performer["href"] = host_url + link["href"]
|
||||||
|
|
||||||
performer["tags"] = [
|
#performer["tags"] = [
|
||||||
tag.strip() for br in cast.find_all("br")
|
# tag.strip() for br in cast.find_all("br")
|
||||||
if (tag := br.next_sibling) and isinstance(tag, str) and tag.strip()
|
# if (tag := br.next_sibling) and isinstance(tag, str) and tag.strip()
|
||||||
]
|
#]
|
||||||
|
|
||||||
|
tags = []
|
||||||
|
for br in cast.find_all("br"):
|
||||||
|
tag = br.next_sibling
|
||||||
|
if isinstance(tag, str) and tag.strip():
|
||||||
|
tags.append(tag.strip())
|
||||||
|
performer["tags"] = tags
|
||||||
|
|
||||||
#performer["tags"] = [br.next_sibling.strip() for br in cast.find_all("br") if br.next_sibling and (br.next_sibling).strip()]
|
#performer["tags"] = [br.next_sibling.strip() for br in cast.find_all("br") if br.next_sibling and (br.next_sibling).strip()]
|
||||||
performers.append(performer)
|
performers.append(performer)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user