Skip to content
This repository has been archived by the owner on Jul 9, 2022. It is now read-only.

Commit

Permalink
fixed cl0p scraper (#72)
Browse files Browse the repository at this point in the history
fixes #63
  • Loading branch information
captainGeech42 committed Oct 23, 2021
1 parent cfd1ee6 commit 4727d9c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/sites/cl0p.py
Expand Up @@ -18,14 +18,13 @@ def scrape_victims(self):
soup = BeautifulSoup(r.content.decode(), "html.parser")

# get max page number
victim_list = soup.find("div", class_="collapse-section").find_all("li")
victim_list = soup.find("ul", class_="g-toplevel").find_all("li", class_="g-menu-item")
for victim in victim_list:
victim_name = victim.find("a").text.strip()
victim_name = victim.find("span", class_="g-menu-item-title").text.strip()

if victim_name == "HOME" or victim_name == "HOW TO DOWNLOAD?":
if victim_name in ("HOME", "HOW TO DOWNLOAD?", "ARCHIVE"):
continue


victim_leak_site = self.url + victim.find("a").attrs["href"]


Expand Down

0 comments on commit 4727d9c

Please sign in to comment.