Skip to content

Commit

Permalink
Update _ransomlook.py
Browse files Browse the repository at this point in the history
  • Loading branch information
usmancout committed Feb 19, 2025
1 parent 89b1087 commit d7f809d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shared_collector/scripts/_ransomlook.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,10 @@ def parse_leak_data(self, page: Page):
collected_links.append(full_url)
processed_posts.add(post_id)

for link in collected_links[:5]:
for link in collected_links:
page.goto(link)
page.wait_for_selector('article#main')

m_content = page.text_content('article#main').strip().replace('\n', '').replace(' ', '')

title_element = page.query_selector("article#main > h1")
m_title = title_element.inner_text().strip() if title_element else ""
Expand All @@ -90,6 +89,8 @@ def parse_leak_data(self, page: Page):
columns_element = page.query_selector("table#table tbody tr td:nth-child(4)")
m_columns = columns_element.inner_text().strip() if columns_element else ""

m_content = m_columns.replace("[", "").replace("]", "")

card_data = card_extraction_model(
m_title=m_title,
m_url=page.url,
Expand Down

0 comments on commit d7f809d

Please sign in to comment.