codeforamerica / project-ideas

A place to collect ideas for CfA health projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make a Brigade stories Twitterbot

ondrae opened this issue · comments

Post the most recent blog post from a Code for America Brigade once a day. So, whichever Brigade has the most recent blog post up at 11am gets a tweet.

A good CfAPI link to use is http://codeforamerica.org/api/stories?organization_type=Brigade&per_page=1

The handle https://twitter.com/brigade_stories is still available.

I set this up at the handle that you suggested, it should post one story a day at 11am.

Well then! Thanks @urbildpunkt

Can you share the login info with me? andrewh at codeforamerica.org

The /stories endpoint is probably the weakest so far from the CfAPI. Don't have any grand ideas on how to make it more useful either. Maybe adding an rss endpoint too?

Can you share a link to your code too?

Yea I will email you the login info, unless you use lastpass. And I will add you to the Google Apps Script that runs the bot.

I also started adding all the Brigades I could find to a list under the account.

I'll be adding Twitter handles to the CfAPI soon. Until then, here is a partial list.

It seems that brigade stories aren't produced often enough for the current setup of this bot.