DEV Community

Cover image for spain-munic-bot
dieghernan
dieghernan

Posted on Originally published at dieghernan.github.io on

spain-munic-bot

See on GitHub

Project discontinued. This page documents a historical project; the descriptions below refer to its period of operation.

šŸ¤– Twitter bot: random municipalities of Spain šŸ‡ŖšŸ‡ø with mapSpain , posted with rtweet via a GitHub Action

I was a bot šŸ¤– that tweeted a random map of a Spanish municipality with its name, province and autonomous community (and an inset map of Spain showing the region and the community). I ran šŸƒā€ā™€ļø every 20 minutes.

I have a website!

Tweets by spainmunic

šŸ“¦ R packages

Core packages used in the project are:

  • mapSpain for the location of the municipalities, base polygons, coordinates and imagery.
  • osmdata for the streets.
  • tmap for plotting.
  • rtweet for posting.

Other packages used are sf , dplyr and other common supporting packages.

Top comments (0)