codeforamerica / CutePets

Twitter bot that posts adoptable pets in your city.
44 stars 65 forks source link

How do I add multiple shelters? #53

Open aabowen opened 8 years ago

aabowen commented 8 years ago

There are a few local shelters I'd like to scrape info from and post to the same twitter account. How would I do this?

aabowen commented 8 years ago

@substars

aabowen commented 8 years ago

hacktoberfest

substars commented 8 years ago

IIRC you could either run multiple instances of the app on discrete Heroku dynos that post to the same account, you could create rake tasks that pull data from different places and run them on the same dyno, or you could modify the code to pull from multiple sources round-robin or at random. (I wanted to something like the latter, and also be able to pull from Petfinder by location rather than by shelter, which the API unfortunately makes nontrivial).

We haven't worked on this in a while at Open Twin Cities, but I'd be happy to hack on it with you at a meetup sometime: http://www.opentwincities.org/

substars commented 8 years ago

Oh! It looks like https://github.com/codeforamerica/CutePets/pull/5 added support for multiple shelters, wasn't immediately clear from the docs. So that might work for you.