Skip to content

Commit

Permalink
Update sfp_accounts.py
Browse files Browse the repository at this point in the history
Resolved the issues caused due to the changes in WhatsMyName repository.
  • Loading branch information
muraleekrishnan4 authored Oct 26, 2024
1 parent 0f815a2 commit 0f17021
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/sfp_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def setup(self, sfc, userOpts=dict()):

content = self.sf.cacheGet("sfaccountsv2", 48)
if content is None:
url = "https://raw.githubusercontent.com/WebBreacher/WhatsMyName/main/wmn-data.json"
url = "https://raw.githubusercontent.com/WebBreacher/WhatsMyName/refs/heads/main/wmn-data.json"
data = self.sf.fetchUrl(url, useragent="SpiderFoot")

if data['content'] is None:
Expand All @@ -104,14 +104,17 @@ def producedEvents(self):
"SIMILAR_ACCOUNT_EXTERNAL"]

def checkSite(self, name, site):
if 'uri_check' not in site:
if 'check_uri' not in site:
return

url = site['uri_check'].format(account=name)
url = site['check_uri'].format(account=name)
if 'uri_pretty' in site:
ret_url = site['uri_pretty'].format(account=name)
elif 'pretty_uri' in site:
ret_url = site['pretty_uri'].format(account=name)
else:
ret_url = url

retname = f"{site['name']} (Category: {site['cat']})\n<SFURL>{ret_url}</SFURL>"

post = None
Expand Down

0 comments on commit 0f17021

Please sign in to comment.