Skip to content

Commit

Permalink
fix lint issues for ruff v8 release
Browse files Browse the repository at this point in the history
  • Loading branch information
L1ghtn1ng committed Nov 24, 2024
1 parent 02392a6 commit 74f1922
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion theHarvester/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ async def handler(lst):
total = int(end - start_time)
mon, sec = divmod(total, 60)
hr, mon = divmod(mon, 60)
total_time = '%02d:%02d' % (mon, sec)
total_time = f'{mon:02d}:{sec:02d}'
print(f'Finished taking screenshots in {total_time} seconds')
print('[+] Note there may be leftover chrome processes you may have to kill manually\n')

Expand Down
11 changes: 1 addition & 10 deletions theHarvester/discovery/searchhunterhow.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,7 @@ async def do_search(self) -> None:
# two_years_ago = one_year_ago - relativedelta(days=364)
# start_time = two_years_ago.strftime('%Y-%m-%d')
# end_time = one_year_ago.strftime('%Y-%m-%d')
url = 'https://api.hunter.how/search?api-key=%s&query=%s&page=%d&page_size=%d&start_time=%s&end_time=%s' % (
# self.key, encoded_query, page, page_size, start_time, end_time
self.key,
encoded_query,
page,
page_size,
start_time,
end_time,
)
# print(f'Sending url: {url}')
url = f'https://api.hunter.how/search?api-key={self.key}&query={encoded_query}&page={page}&page_size={page_size}&start_time={start_time}&end_time={end_time}'
response = await AsyncFetcher.fetch_all(
[url],
json=True,
Expand Down

0 comments on commit 74f1922

Please sign in to comment.