Skip to content

Twitter bot (https://twitter.com/QueryDPLA) that searches the Digital Public Library of America (http://dp.la) for a term tweeted at it and responds with the title and URI of a random item from the query's results.

License

Notifications You must be signed in to change notification settings

tw4l/query_dpla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

query_dpla

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.

Known Issues

  • 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.

About

Twitter bot (https://twitter.com/QueryDPLA) that searches the Digital Public Library of America (http://dp.la) for a term tweeted at it and responds with the title and URI of a random item from the query's results.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages