Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 1.21 KB

README.md

File metadata and controls

21 lines (14 loc) · 1.21 KB

VAMBot

A simple Twitter bot that tweets details from the V&A Museum API v2 (released 15/4/2021), which is well documented by their team.

This bot is an R script, powered via a Github action. Inspired a bit by Londonmapbot's code which showed me how to automate the R script via an action.

This script calls a random object from the collections with an image attached, constructs a tweet and sends it with the url for the record.

How to run this

  1. Create a Twitter account for your bot
  2. Sign up for a developer access with Twitter
  3. Fork this repo (or just copy the code into a new repo)
  4. Obtain your API keys from Twitter and add them as GitHub secrets
  5. Edit variables retrieved from the api in the vambot-tweet.R file
  6. Edit the .github/workflows/vambot.yml file to adjust the cron schedule Every 10 mins past the hour at the moment.
  7. GitHub Actions run or throw a tantrum (if your keys are wrong for instance.)

License

GPL V3