■ ■ ■ ■ ■ ■
snscrape/modules/vkontakte.py
| skipped 55 lines |
56 | 56 | | logger.error('Private profile') |
57 | 57 | | return |
58 | 58 | | |
| 59 | + | profileDeleted = soup.find('h5', class_ = 'profile_deleted_text') |
| 60 | + | if profileDeleted: |
| 61 | + | # Unclear what this state represents, so just log website text. |
| 62 | + | logger.error(profileDeleted.text) |
| 63 | + | return |
| 64 | + | |
59 | 65 | | newestPost = soup.find('div', class_ = 'post') |
60 | 66 | | if not newestPost: |
61 | 67 | | logger.info('Wall has no posts') |
| skipped 41 lines |