python-rss2irc
python-rss2irc copied to clipboard
The URL shortener is out of service for days
The problem is fixed in my latest Pull Request. You can also replace the "shorten()" function in the "bot.py" file with this new version:
def shorten(self, url):
try: # Trying to shorten URL
api = 'https://tinyurl.com/api-create.php?url='
sresponse = requests.get(api + url)
surl = sresponse.text
except Exception as err:
print('A shortening error occurred:', sresponse.status_code)
surl = url
return surl