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

t.co links are not expanded in some cases #5

Open
wtsnjp opened this issue Nov 12, 2022 · 1 comment
Open

t.co links are not expanded in some cases #5

wtsnjp opened this issue Nov 12, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@wtsnjp
Copy link
Owner

wtsnjp commented Nov 12, 2022

Example problematic cases:

@wtsnjp wtsnjp added the bug Something isn't working label Nov 12, 2022
@wtsnjp
Copy link
Owner Author

wtsnjp commented Nov 12, 2022

Probably, this is because only links separated by spaces and line breaks are found.

links = [w for w in text.split() if urlparse(w.strip()).scheme]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant