fix:correct LinkedIn logger naming (#291)

* fix:correct LinkedIn logger naming

* add:linkedin description plain format
This commit is contained in:
Lixian Wang
2025-08-23 22:37:49 +02:00
committed by GitHub
parent 84ed670df3
commit b6d5cd8d79
4 changed files with 14 additions and 2 deletions

View File

@@ -157,6 +157,15 @@ def markdown_converter(description_html: str):
markdown = md(description_html)
return markdown.strip()
def plain_converter(decription_html:str):
from bs4 import BeautifulSoup
if decription_html is None:
return None
soup = BeautifulSoup(decription_html, "html.parser")
text = soup.get_text(separator=" ")
text = re.sub(r'\s+',' ',text)
return text.strip()
def extract_emails_from_text(text: str) -> list[str] | None:
if not text: