QueryDPLA is a Twitter bot that searches the Digital Public Library of America for a term tweeted at it, picks one of the first five results at random, and tweets the item's title and URI back to the querier. QueryDPLA is written in Python 2.7. It uses Tweepy to communicate with the Twitter API and DPyLA to communicate with the DPLA API.
- The bot is unable to distinguish between search terms and references (e.g. if someone tweets "@QueryDPLA (some message about it rather than intended for it)", the bot will search for all text in the tweet that comes after "@QueryDPLA" and reply accordingly.