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 Utils return incorrect status length. #346
Comments
Technically that's a valid IP address, but yeah, I can see how that gets annoying. From
Since Twitter isn't recognizing it as an IP address, we should mirror their behavior and say it isn't. |
Interesting, I didn't know that was considered a valid IP. Twitter's determination of what is and isn't an address seems pretty extensive when looking at their twitter-text lib: https://github.com/twitter/twitter-text/blob/master/js/twitter-text.js It seems like a non-trivial task to port that over to python. |
Yeah we take a slightly more liberal approach in a few cases, but our lib is based off of that. Jeremy Low
From: Wes Johnson notifications@github.com Interesting, I didn't know that was considered a valid IP. Twitter's determination of what is and isn't an address seems pretty extensive when looking at their twitter-text lib: https://github.com/twitter/twitter-text/blob/master/js/twitter-text.js It seems like a non-trivial task to port that over to python. — |
I discovered the option to disable tweet length verification in the PostUpdate using the verify_status_length arg. I'm using that to get around this which works well enough for my needs. Thanks! |
Lands in development with 3.2dev0 ( PR #394 ) |
The calc_expected_status_length def in twitter_utils.py is returning an incorrect status length when feeding it decimals.
This returns 23 instead of 5. Something is screwy with the Regex.
python-twitter/twitter/twitter_utils.py
Line 144 in b49b103
The text was updated successfully, but these errors were encountered: