python-rss2irc icon indicating copy to clipboard operation
python-rss2irc copied to clipboard

The URL shortener is out of service for days

Open Wibol opened this issue 2 years ago • 0 comments

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

Wibol avatar Apr 30 '22 09:04 Wibol