Use correct capitalization of twitter account name for deleting video directory

This commit is contained in:
jeancf 2020-03-27 17:45:40 +01:00
parent 0231f224a3
commit 2fe06c0bbc

View File

@ -246,8 +246,10 @@ def main(argv):
# Verify that we now have the correct twitter page
body_classes = soup.body.get_attribute_list('class')
assert contains_class(body_classes, 'users-show-page'), \
'This is not the correct twitter page. Quitting'
assert contains_class(body_classes, 'users-show-page'), 'This is not the correct twitter page. Quitting'
# Replace twit_account with version with correct capitalization
twit_account = soup.find('span', class_='screen-name').get_text()
# Extract twitter timeline
timeline = soup.find_all('table', class_='tweet')