mirror of
https://github.com/bellingcat/snscrape.git
synced 2026-06-13 04:48:28 +03:00
vkontakte-user: Handle additional un-scrapeable profile case
This commit is contained in:
@@ -56,6 +56,12 @@ class VKontakteUserScraper(snscrape.base.Scraper):
|
|||||||
logger.error('Private profile')
|
logger.error('Private profile')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
profileDeleted = soup.find('h5', class_ = 'profile_deleted_text')
|
||||||
|
if profileDeleted:
|
||||||
|
# Unclear what this state represents, so just log website text.
|
||||||
|
logger.error(profileDeleted.text)
|
||||||
|
return
|
||||||
|
|
||||||
newestPost = soup.find('div', class_ = 'post')
|
newestPost = soup.find('div', class_ = 'post')
|
||||||
if not newestPost:
|
if not newestPost:
|
||||||
logger.info('Wall has no posts')
|
logger.info('Wall has no posts')
|
||||||
|
|||||||
Reference in New Issue
Block a user