urlExpander icon indicating copy to clipboard operation
urlExpander copied to clipboard

Twitter URLs expand to "__CLIENT_ERROR__"

Open epicfaace opened this issue 4 years ago • 2 comments

Many t.co URLs are no longer expanding properly when using urlexpander:

>>> import urlexpander
>>> urlexpander.expand("https://t.co/lbopTtfmJG")
'http://twitter.com/__CLIENT_ERROR__'

Do you know why it's giving me __CLIENT_ERROR__?

epicfaace avatar Jan 19 '21 21:01 epicfaace

it happen on tinyurl.com too. but sometime if it just 1 url it work

jacob755 avatar Mar 25 '21 15:03 jacob755

@epicfaace I ran in the same issue. As a workaround I found that passing head=False when calling urlexpander.expand() resolved the problem for shortened Twitter URLs.

bumatic avatar May 01 '23 09:05 bumatic