mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-23 20:11:11 +00:00
Use correct capitalization of twitter account name for deleting video directory
This commit is contained in:
parent
0231f224a3
commit
2fe06c0bbc
6
twoot.py
6
twoot.py
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user