urlExpander
urlExpander copied to clipboard
Twitter URLs expand to "__CLIENT_ERROR__"
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__?
it happen on tinyurl.com too. but sometime if it just 1 url it work
@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.