mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-01-31 05:33:45 +00:00
Extracted timeline
This commit is contained in:
parent
910b7a8b13
commit
c25e36b498
7
twoot.py
7
twoot.py
|
@ -233,11 +233,10 @@ def main(argv):
|
||||||
if ta_match is not None:
|
if ta_match is not None:
|
||||||
twit_account = ta_match.group(1)
|
twit_account = ta_match.group(1)
|
||||||
|
|
||||||
print(twit_account)
|
|
||||||
exit(0)
|
|
||||||
|
|
||||||
# Extract twitter timeline
|
# Extract twitter timeline
|
||||||
timeline = soup.find_all('table', class_='tweet')
|
timeline = soup.find_all('div', class_='timeline-item')
|
||||||
|
print(len(timeline))
|
||||||
|
exit(0)
|
||||||
|
|
||||||
for status in timeline:
|
for status in timeline:
|
||||||
# Extract tweet ID and status ID
|
# Extract tweet ID and status ID
|
||||||
|
|
Loading…
Reference in New Issue
Block a user