mirror of
https://github.com/Bunsly/JobSpy.git
synced 2026-03-04 19:44:30 -08:00
fix:correct LinkedIn logger naming (#291)
* fix:correct LinkedIn logger naming * add:linkedin description plain format
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user