/spain-munic-bot

πŸ€– Twitter bot: random municipalities of Spain πŸ‡ͺπŸ‡Έ with {CatastRo} posted with {rtweet} via a GitHub Action

Primary LanguageRMIT LicenseMIT

spain-munic-bot πŸ‡ͺπŸ‡ΈπŸ€–

tweet-maps progress last-visited last-tweet Followers ko-fi

A Twitter bot written in R

β€œFollow

I tweet a random map of a Spanish town together with its name, province, and autonomous community (and a inset map of Spain showing the region and the community). The bot is set to run every 20 minutes.

🏠 Buildings

I create a map of the Urban Growth of Spanish cities, based on the works of Dominic RoyΓ©: Visualize urban growth

sample

Find here all the maps generated by the bot.

✈️ The journey

journey

πŸ“¦ R packages

Core packages used in the project are:

Other packages used are {sf}, {dplyr} and another common supporting packages.

This project uses {renv} for ensuring fully reproducibility across platforms.

πŸ™ŒπŸ» Credits

❔ How to run it

From the command line it is enough to run the following command:

    $ Rscript R/trigger.R

This will trigger R/01_create_map.R and compose the tweet.