Skip to content

Commit 4aded74

Browse files
committed
Some fixes
1 parent d86540e commit 4aded74

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

scrapers/osint/emailrep_scraper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __parse_response_data(self, response_data: Response) -> Dict:
1515
try:
1616
return response_data.json()
1717
except JSONDecodeError as e:
18-
print(f'Error while parsing response json data...')
18+
print('Error while parsing response json data...')
1919
return {}
2020

2121
def __get_user_data(self, email: str) -> Dict[str, Dict or str] or None:

tests/test_parse_input_file.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,17 @@
44
from os.path import basename
55

66

7-
def _readInputData(path: str) -> Dict[str, Dict]:
7+
def _read_input_data(path: str) -> Dict[str, Dict]:
88
with open(path, 'r') as file:
9-
data = load(
10-
file
11-
)
9+
data = load(file)
1210
file.close()
1311

1412
return data
1513

1614

1715
def test_parse_input_file():
1816
path_to_file = (Path() / 'tests' / 'users' / 'yuliya_chesnokova.json').absolute()
19-
credentials = _readInputData(str(path_to_file))
17+
credentials = _read_input_data(str(path_to_file))
2018

2119
try:
2220
assert 'twitter' in credentials

0 commit comments

Comments
 (0)