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

Commit

Permalink
Issues/70 (#71)
Browse files Browse the repository at this point in the history
* fixed import bugs

* fixed lockdata and marketo

* fixed syntax issue on avoslocker
  • Loading branch information
captainGeech42 authored Oct 23, 2021
1 parent 743d6b8 commit cfd1ee6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ransomwatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def main(argv):
sites.Cometa,
sites.Arvin,
sites.Blackmatter,
sites.AvosLocker,
sites.Avoslocker,
sites.LV,
sites.Marketo,
sites.LockData
Expand Down
2 changes: 1 addition & 1 deletion src/sites/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
from .avoslocker import Avoslocker
from .lv import LV
from .marketo import Marketo
from .lockdata import Lockdata
from .lockdata import LockData
3 changes: 1 addition & 2 deletions src/sites/avoslocker.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from datetime import datetime
from bs4 import BeautifulSoup
import logging
import requests

from config import Config
from db.models import Victim
Expand Down Expand Up @@ -51,7 +50,7 @@ def scrape_victims(self):

if q.count() == 0:
# new victim
v = Victim(name=name, url=None, published=publish_dt, first_seen=datetime.utcnow(), last_see$
v = Victim(name=name, url=None, published=publish_dt, first_seen=datetime.utcnow(), last_seen=datetime.utcnow(), site=self.site)
self.session.add(v)
self.new_victims.append(v)
else:
Expand Down
2 changes: 1 addition & 1 deletion src/sites/lockdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def scrape_victims(self):
victim_name = victim.find("div", class_="auction-item-info__title").text.strip()
published_dt = None

victim_leak_site = self.url + victim.find("div", class_="auction-item-info__title").find("a")$
victim_leak_site = self.url + victim.find("div", class_="auction-item-info__title").find("a").attrs["href"]

q = self.session.query(Victim).filter_by(
url=victim_leak_site, site=self.site)
Expand Down
2 changes: 1 addition & 1 deletion src/sites/marketo.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def scrape_victims(self):

for victim in victim_list:

victim_name = victim.find("div", class_="text-left text-grey d-block overflow-hidden").find("a")$
victim_name = victim.find("div", class_="text-left text-grey d-block overflow-hidden").find("a").attrs["href"]

published_dt = None

Expand Down

0 comments on commit cfd1ee6

Please sign in to comment.