Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitter URLs expand to "__CLIENT_ERROR__" #12

Open
epicfaace opened this issue Jan 19, 2021 · 2 comments
Open

Twitter URLs expand to "__CLIENT_ERROR__" #12

epicfaace opened this issue Jan 19, 2021 · 2 comments

Comments

@epicfaace
Copy link

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__?

@jacob755
Copy link

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

@bumatic
Copy link

bumatic commented May 1, 2023

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants