rOpenSci | A Twitter bot with rtweet, Mapbox and GitHub Actions
Reported on: Sep 25, 2020

A Twitter bot with rtweet, Mapbox and GitHub Actions

English • By Matt Dray • Featuring: rtweet

rOpenSci package or resource used*

rtweet

What did you do?

I set up a GitHub Action that includes R code that generates random coordinates in greater London, queries the Mapbox API for a satellite image and uses the Twitter API via {rtweet} to post the image to the @londonmapbot Twitter account.

URL or code snippet for your use case*

Image

wimbledon|690x459, 75%

More images at the @londonmapbot account.

Sector

Other

Field(s) of application

geography, geospatial, communications, social studies, sociology