fix conflicts

This commit is contained in:
seehi 2024-07-15 16:32:12 +08:00
commit 0312f4f728
17 changed files with 382 additions and 199 deletions

View file

@ -41,7 +41,7 @@ class WebPage(BaseModel):
def get_slim_soup(self, keep_links: bool = False):
soup = _get_soup(self.html)
keep_attrs = ["class"]
keep_attrs = ["class", "id"]
if keep_links:
keep_attrs.append("href")