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 # Verify that we now have the correct twitter page
body_classes = soup.body.get_attribute_list('class') body_classes = soup.body.get_attribute_list('class')
assert contains_class(body_classes, 'users-show-page'), \ assert contains_class(body_classes, 'users-show-page'), 'This is not the correct twitter page. Quitting'
'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 # Extract twitter timeline
timeline = soup.find_all('table', class_='tweet') timeline = soup.find_all('table', class_='tweet')