mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-23 20:11:11 +00:00
Quick fix of log issue
This commit is contained in:
parent
6c11d39e6c
commit
f881b46454
8
twoot.py
8
twoot.py
|
@ -735,10 +735,10 @@ def main(argv):
|
|||
soup = BeautifulSoup(twit_account_page.text, 'html.parser')
|
||||
|
||||
# Replace twitter_account with version with correct capitalization
|
||||
ta = soup.find('meta', property='og:title').get('content')
|
||||
ta_match = re.search(r'\(@(.+)\)', ta)
|
||||
if ta_match is not None:
|
||||
TOML['config']['twitter_account'] = ta_match.group(1)
|
||||
# ta = soup.find('meta', property='og:title').get('content')
|
||||
# ta_match = re.search(r'\(@(.+)\)', ta)
|
||||
# if ta_match is not None:
|
||||
# TOML['config']['twitter_account'] = ta_match.group(1)
|
||||
|
||||
# Extract twitter timeline
|
||||
timeline = soup.find_all('div', class_='timeline-item')
|
||||
|
|
Loading…
Reference in New Issue
Block a user