Skip to content

Commit 8da780f

Browse files
Updated crawl_processor.py [added fillers when DPULSE cant find element]
1 parent 6d1456e commit 8da780f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

datagather_modules/crawl_processor.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,28 @@ def sm_gather(url):
8282
categorized_links['WeChat'].append(urllib.parse.unquote(link))
8383
elif 'ok.ru' in link:
8484
categorized_links['Odnoklassniki'].append(urllib.parse.unquote(link))
85+
86+
if not categorized_links['Odnoklassniki']:
87+
categorized_links['Odnoklassniki'].append('Odnoklassniki links were not found')
88+
if not categorized_links['WeChat']:
89+
categorized_links['WeChat'].append('WeChat links were not found')
90+
if not categorized_links['YouTube']:
91+
categorized_links['YouTube'].append('YouTube links were not found')
92+
if not categorized_links['LinkedIn']:
93+
categorized_links['LinkedIn'].append('LinkedIn links were not found')
94+
if not categorized_links['VKontakte']:
95+
categorized_links['VKontakte'].append('VKontakte links were not found')
96+
if not categorized_links['TikTok']:
97+
categorized_links['TikTok'].append('TikTok links were not found')
98+
if not categorized_links['Telegram']:
99+
categorized_links['Telegram'].append('Telegram links were not found')
100+
if not categorized_links['Instagram']:
101+
categorized_links['Instagram'].append('Instagram links were not found')
102+
if not categorized_links['Twitter']:
103+
categorized_links['Twitter'].append('Twitter links were not found')
104+
if not categorized_links['Facebook']:
105+
categorized_links['Facebook'].append('Facebook links were not found')
106+
85107
return categorized_links
86108

87109
def domains_reverse_research(subdomains, report_file_type):

0 commit comments

Comments
 (0)