Switch to nitter.net for rss feed

This commit is contained in:
Felix Ableitner 2020-06-18 18:17:19 +02:00
parent a608b4cc34
commit 801e001e9d
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ A small python 3.x script to replicate tweets on a mastodon account.
The script only need mastodon login/pass to post toots. It can run on any server (does not have to
be on the mastodon instance server).
It gets the tweets from RSS available at http://twitrss.me, then does some cleanup on the content:
It gets the tweets from RSS available at nitter.net, then does some cleanup on the content:
- twitter tracking links (t.co) are dereferenced
- twitter hosted pictures are retrieved and uploaded to mastodon

View file

@ -35,7 +35,7 @@ passwd = sys.argv[3]
mastodon_api = None
d = feedparser.parse('http://twitrss.me/twitter_user_to_rss/?user='+twitter)
d = feedparser.parse('https://nitter.net/'+twitter+'/rss')
for t in reversed(d.entries[0:5]):
# check if this tweet has been processed