-
Notifications
You must be signed in to change notification settings - Fork 0
upd #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
khramov86
left a comment
There was a problem hiding this 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() |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
No description provided.