mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-24 04:21:13 +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
|
# 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')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user