Spaces:
Running
Running
NotLucifer18 commited on
Commit ·
4395077
1
Parent(s): fce8e62
fix: update Mgeko search parsing for .cc domain
Browse files58 unmodified lines596061626364656658 unmodified linesif not a: continuehref = a.get("href", "").strip()title_el = a.find("div", class_="info").find("div", class_="title") if a.find("div", class_="info") else Nonetitle = title_el.text.strip() if title_el else a.text.strip()img = a.find("img")poster = (img.get("src") or img.get("data-src", "")).strip() if img else ""58 unmodified lines596061626364656667686958 unmodified linesif not a: continuehref = a.get("href", "").strip()# Title is more reliable in the h4 or title attributetitle = a.get("title", "").strip()if not title:title_el = a.find("h4")title = title_el.text.strip() if title_el else a.text.strip()img = a.find("img")poster = (img.get("src") or img.get("data-src", "")).strip() if img else ""
Webs/mgeko.py+5-2