Coder Social home page Coder Social logo

bmgpetbot's Introduction

Help shelter pets find a home.

This is based on/inspired by the Code For America cutepets project: https://github.com/codeforamerica/CutePets

It is different in that it is in Python, pulls data from the city of Bloomington, Indiana's 'adoptable animals' site, and includes some code to assist with deploying as an AWS Lambda Function.

To run it:

  • Use Python 3
  • Install the modules in the requirements.txt file (virtualenvs are good here): pip install --no-cache-dir -r requirements.txt
  • You also need a 'config.py' file containing all your API secrets & keys
  • Deploy as per the README.md in the 'lambda_deploy' subdirectory

bmgpetbot's People

Contributors

sdcharle avatar

Stargazers

Rick Dietz avatar

Watchers

 avatar James Cloos avatar Hayden Mills avatar

bmgpetbot's Issues

Add hashtags

Tweets are more likely to show up with hashtags. For example, #dog #beagle #shelteranimal #pets.

Issues w/ no photo pets

On the site, when pets have no photo, there's a generic .svg file that causes tweepy to choke.

Questions about AWS account and temp file for image

I'm creating my own twitterbot for Louisville Metro Animal Services in R. Have a few questions if you have the time.

  1. Whose account did you use for the AWS Lambda Function? ...Animals services or City of Bloomington or BMGHack or someone's personal account?

  2. If you got a free tier account, do you know what happens when that expires. I know (at least I think I know) the function stays active and you get the same invocation and GB/s rates but do you still have access to change or update the code if something happens?

  3. "1/20/2018 SDC don't save image to temp file!" from petbot.py. Assuming you didn't create a temp file, how did you tweet the image!? Twitter doesn't allow image links to display images so if I can't create a temp file, I'm stumped.

  4. Out of curiosity, what does SDC stand for? lol

Thanks for your time and also the code!

Tweet formatting

Any chance of updating this twitter bot to something like this instead of the stacked variables in the attached image?

Adopt Snowball, a very large American female rabbit, age 6 years 1 month! #rabbit [etc]
Adopt [Name], a [size] [Breed] [sex] [species], age [age]! #[species] [etc]

screen shot 2018-04-26 at 10 04 29 pm

Remove additional intro text when it appears.

From the animal shelter folks:

First suggestion is to add a new line between the animal description and the animal name... for example "Very Sweet!!! NO Chip BW is:" is confusing to parse
if the descriptions are too long, they're also fine with leaving those out of the tweet

Proposed - need to change the way BeautifulSoup is parsing it to use the structure of the doc more.

Add geotagging

Geo tag the tweets, so they will show up in 'near me' searches.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.