Skip to content

Commit

Permalink
code optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
msmannan00 committed Feb 23, 2025
1 parent 8dc9ff4 commit b2c5acc
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def parse_leak_data(self, page: Page):
m_dumplink=dump_links,
m_email_addresses=helper_method.extract_emails(body_text),
m_phone_numbers=helper_method.extract_phone_numbers(body_text),
m_content_type="leaks",
m_content_type=["leaks"],
)

self._card_data.append(card_data)
Expand Down
2 changes: 1 addition & 1 deletion shared_collector/scripts/_darkfeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def parse_leak_data(self, page: Page):
m_important_content=content_message,
m_email_addresses=helper_method.extract_emails(content_message),
m_phone_numbers=helper_method.extract_phone_numbers(content_message),
m_content_type="leaks",
m_content_type=["leaks"],
m_leak_date=today_date
)

Expand Down
2 changes: 1 addition & 1 deletion shared_collector/scripts/_ddosecrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def parse_leak_data(self, page: Page):
m_url=article_url,
m_base_url=self.base_url,
m_content=content_text,
m_content_type="leaks",
m_content_type=["leaks"],
m_important_content=content_text,
m_weblink=weblinks,
m_network=helper_method.get_network_type(self.base_url),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def parse_leak_data(self, page: Page):
m_important_content=content,
m_logo_or_images=image_urls,
m_network=helper_method.get_network_type(self.base_url),
m_content_type="leaks",
m_content_type=["leaks"],
m_data_size=data_size,
m_email_addresses=helper_method.extract_emails(content),
m_phone_numbers=helper_method.extract_phone_numbers(content),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def parse_leak_data(self, page: Page):
m_dumplink=links,
m_email_addresses=helper_method.extract_emails(content_text),
m_phone_numbers=helper_method.extract_phone_numbers(content_text),
m_content_type="leaks",
m_content_type=["leaks"],
m_leak_date=date_text,
)
)
Expand Down
2 changes: 1 addition & 1 deletion shared_collector/scripts/_handala_hack.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def parse_leak_data(self, page: Page):
m_logo_or_images=image_urls,
m_network=helper_method.get_network_type(self.base_url),
m_important_content=important_content,
m_content_type="leaks",
m_content_type=["leaks"],
m_email_addresses=helper_method.extract_emails(content),
m_phone_numbers=helper_method.extract_phone_numbers(content),
m_leak_date=date_time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def parse_leak_data(self, page: Page):
m_weblink=[site],
m_email_addresses=helper_method.extract_emails(description),
m_phone_numbers=helper_method.extract_phone_numbers(description),
m_content_type="leaks",
m_content_type=["leaks"],
m_leak_date=year,
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def parse_leak_data(self, page: Page):
m_dumplink=dumplinks,
m_email_addresses=helper_method.extract_emails(content_text),
m_phone_numbers=helper_method.extract_phone_numbers(content_text),
m_content_type="leaks",
m_content_type=["leaks"],
m_leak_date=datetime_text,
)
)
Expand Down
2 changes: 1 addition & 1 deletion shared_collector/scripts/_mirror_h.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def parse_leak_data(self, page: Page):
m_content=m_content_container,
m_websites=[web_server] if web_server else [],
m_important_content=m_important_content_container if m_important_content_container else "",
m_content_type="leaks",
m_content_type=["leaks"],
m_email_addresses=helper_method.extract_emails(m_content_container),
m_phone_numbers=helper_method.extract_phone_numbers(m_content_container),
m_leak_date=date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def parse_leak_data(self, page: Page):
m_dumplink=dumplinks,
m_email_addresses=helper_method.extract_emails(detail_soup.text),
m_industry=industry,
m_content_type="leaks",
m_content_type=["leaks"],
))

page.go_back()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def parse_leak_data(self, page: Page):
m_dumplink=dump_links,
m_email_addresses=helper_method.extract_emails(content),
m_phone_numbers=helper_method.extract_phone_numbers(content),
m_content_type="leaks",
m_content_type=["leaks"],
)

self._card_data.append(card_data)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def parse_leak_data(self, page: Page):
m_content=description,
m_important_content = description,
m_logo_or_images=image_urls,
m_content_type="leaks",
m_content_type=["leaks"],
m_data_size=number_of_files,
m_email_addresses=helper_method.extract_emails(description) if description else [],
m_phone_numbers=helper_method.extract_phone_numbers(description) if description else [],
Expand Down
2 changes: 1 addition & 1 deletion shared_collector/scripts/_ransomwiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,6 @@ def parse_leak_data(self, page: Page):
m_dumplink=[],
m_email_addresses=helper_method.extract_emails(soup.text),
m_phone_numbers=helper_method.extract_phone_numbers(soup.text),
m_content_type="leaks",
m_content_type=["leaks"],
))

Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def safe_get_text(selector):
m_dumplink=[download_link] if download_link else [],
m_email_addresses=helper_method.extract_emails(description_text),
m_phone_numbers=helper_method.extract_phone_numbers(description_text),
m_content_type="leaks",
m_content_type=["leaks"],
m_leak_date=date_text,
m_data_size= file_size_text,
m_logo_or_images=[profile_img] if profile_img != "Unknown" else []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ def parse_leak_data(self, page:Page ):
m_dumplink=dumplinks,
m_email_addresses= helper_method.extract_emails(content),
m_phone_numbers= helper_method.extract_phone_numbers(content),
m_content_type="leaks"
m_content_type=["leaks"]
)
self._card_data.append(card_data)
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def parse_leak_data(self, page: Page):
m_dumplink=[],
m_email_addresses=helper_method.extract_emails(m_content),
m_phone_numbers=helper_method.extract_phone_numbers(m_content),
m_content_type="leaks",
m_content_type=["leaks"],
m_revenue=m_revenue,
m_data_size=m_data_size,
m_leak_date=m_date
Expand Down
2 changes: 1 addition & 1 deletion shared_collector/scripts/_zone_xsec.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def parse_leak_data(self, page: Page):
m_websites=[web_server] if web_server else [],
m_network=helper_method.get_network_type(self.base_url),
m_important_content=m_important_content_container if m_important_content_container else "",
m_content_type="leaks",
m_content_type=["leaks"],
m_leak_date=date
)

Expand Down

0 comments on commit b2c5acc

Please sign in to comment.