Skip to content

Conversation

@spqrlatin
Copy link
Owner

No description provided.

Copy link
Collaborator

@khramov86 khramov86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Необходимо исправить замечания

except AttributeError:
lfm = None
try:
date_and_city_of_birth = soup.find("div", class_="reestr").find('p').text.strip()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Возможно имеет смысл сделать парсинг этих полей так же через parse_table для единообразия.

all_rows_len = len(all_rows)
bar = IncrementalBar('Getting user info', max = all_rows_len)

for index, row in enumerate(all_rows):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Переменная index нигде не используется, возможно не нужен enunmerate?

if not user_parsed_data['lfm']:
error_list.append((href_obj.text, url))
continue
person_list.append(user_parsed_data)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В данных есть пользователи без нормальных ФИО. Необходимо подумать, может быть сделать проверку на пропуск таких пользователей и так же отображать в stdout/log их

if len(lfm.split(' ')) < 2:
  continue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants