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 hashtag search breaks on normalization #31

Open
samuelclay opened this issue Jun 21, 2022 · 0 comments
Open

Twitter hashtag search breaks on normalization #31

samuelclay opened this issue Jun 21, 2022 · 0 comments

Comments

@samuelclay
Copy link

Here's a sample Twitter search with a hashtag: https://twitter.com/search?q=%23cncmachining&src=typed_query

When I run it through url_normalization, the encoded hash character (%23) is decoded into a hash (#), but it should stay encoded, because when I visit the normalized url, it 404s.

>>> from url_normalize import url_normalize
>>> url_normalize("https://twitter.com/search?q=%23cncmachining&src=typed_query")
'https://twitter.com/search?q=#cncmachining&src=typed_query'

When you visit them in the browser:

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

1 participant