-
Notifications
You must be signed in to change notification settings - Fork 20
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
403 Error because tweets are too long #21
Comments
Hm, no, I hadn't run into that! It's easy enough to truncate (probably with a |
I lost the exact title, but it was a long FDA announcement about some technical drug-related thing. Very dense and dry gov't agency stuff. |
Also, while I'm on this issue, I've also gotten a
|
Huh, that would happen if an RSS feed entry doesn't have the (required) title field, probably. It doesn't happen much (I haven't seen it in the wild!) but I guess people put all kinds of RSS feeds out there, huh? This should probably fail a little more gracefully, though! Thanks for the report! |
Thank you! Will try running without that problem feed temporarily... |
Just a heads up about that KeyError, this is the problem feed: https://www.michigan.gov/rss/0,2348,7-154-11472--53088-,00.xml In theory, I'd imagine you wouldn't want the entire program to crap out because of one faulty article. Is there a way to make it continue, even if one blog post was untweetable? |
Yes, and honestly it should probably tweet without a title just as it does without an |
I've submitted a PR that I think addresses this: #22 |
And another that addresses potentially empty title/URL: #23 |
Hey,
I've been running the
trackthenews
script and when it encounters an article title that's too long, it returns a 403 error:Is there a workaround for this?
The text was updated successfully, but these errors were encountered: