mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-12-18 00:00:17 +00:00
Release 4.3.2
This commit is contained in:
parent
47d17f4cc5
commit
c34707b149
|
@ -1,5 +1,12 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
**22 JUL 2023** VERSION 4.3.1
|
||||||
|
|
||||||
|
Minor improvements of robustness (avoid interruption of processing):
|
||||||
|
|
||||||
|
* Ignore timeline-item without tweet-link tag
|
||||||
|
* Improve detection of missing video
|
||||||
|
|
||||||
**17 JUL 2023** VERSION 4.3
|
**17 JUL 2023** VERSION 4.3
|
||||||
|
|
||||||
* Twitter threads are replicated on Mastodon: each follow-up message in a thread is posted
|
* Twitter threads are replicated on Mastodon: each follow-up message in a thread is posted
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
Twoot is a python script that mirrors tweets from a twitter account to a Mastodon account.
|
Twoot is a python script that mirrors tweets from a twitter account to a Mastodon account.
|
||||||
It is simple to set-up on a local machine, configurable and feature-rich.
|
It is simple to set-up on a local machine, configurable and feature-rich.
|
||||||
|
|
||||||
**22 JUL 2023** VERSION 4.3.1
|
**24 JUL 2023** VERSION 4.3.2
|
||||||
|
|
||||||
Minor improvements of robustness (avoid interruption of processing):
|
Minor fixes (avoid interruption of processing):
|
||||||
|
|
||||||
* Ignore timeline-item without tweet-link tag
|
* Re-add missing \n before url of quoted tweet
|
||||||
* Improve detection of missing video
|
* Avoid interruption of processing in case of empty thread timeline
|
||||||
|
|
||||||
> Previous updates can be found in CHANGELOG.
|
> Previous updates can be found in CHANGELOG.
|
||||||
|
|
||||||
|
|
2
twoot.py
2
twoot.py
|
@ -204,8 +204,10 @@ def _get_rest_of_thread(session, headers, nitter_url, thread_url, first_item):
|
||||||
# Make soup
|
# Make soup
|
||||||
soup = BeautifulSoup(thread_page.text, 'html.parser')
|
soup = BeautifulSoup(thread_page.text, 'html.parser')
|
||||||
|
|
||||||
|
list = []
|
||||||
# Get all items in thread after main tweet
|
# Get all items in thread after main tweet
|
||||||
after_tweet = soup.find('div', 'after-tweet')
|
after_tweet = soup.find('div', 'after-tweet')
|
||||||
|
if after_tweet is not None:
|
||||||
list = after_tweet.find_all('div', class_='timeline-item')
|
list = after_tweet.find_all('div', class_='timeline-item')
|
||||||
|
|
||||||
# Build timeline of tuples
|
# Build timeline of tuples
|
||||||
|
|
Loading…
Reference in New Issue
Block a user