{"id":13857381,"url":"https://github.com/dieghernan/spain-munic-bot","last_synced_at":"2025-10-28T19:30:19.548Z","repository":{"id":43681489,"uuid":"333515285","full_name":"dieghernan/spain-munic-bot","owner":"dieghernan","description":"🤖 Twitter bot: random municipalities of Spain 🇪🇸 with {CatastRo} posted with {rtweet} via a GitHub Action","archived":false,"fork":false,"pushed_at":"2023-01-06T06:49:01.000Z","size":2490723,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-01T17:35:10.983Z","etag":null,"topics":["bot","maps","r","spain","twitter","twitter-bot"],"latest_commit_sha":null,"homepage":"https://dieghernan.github.io/spain-munic-bot/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dieghernan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"dieghernan","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-01-27T18:00:50.000Z","updated_at":"2022-10-13T16:14:55.000Z","dependencies_parsed_at":"2023-02-05T13:47:10.223Z","dependency_job_id":null,"html_url":"https://github.com/dieghernan/spain-munic-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieghernan%2Fspain-munic-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieghernan%2Fspain-munic-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieghernan%2Fspain-munic-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieghernan%2Fspain-munic-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dieghernan","download_url":"https://codeload.github.com/dieghernan/spain-munic-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238700700,"owners_count":19515976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","maps","r","spain","twitter","twitter-bot"],"created_at":"2024-08-05T03:01:35.081Z","updated_at":"2025-10-28T19:30:18.620Z","avatar_url":"https://github.com/dieghernan.png","language":"R","funding_links":["https://ko-fi.com/dieghernan"],"categories":["R"],"sub_categories":[],"readme":"# spain-munic-bot :es::robot:\n\n![tweet-maps](https://github.com/dieghernan/spain-munic-bot/workflows/last-tweet/badge.svg)\n![](https://img.shields.io/badge/active-since%202021%E2%80%9302%E2%80%9328-brightgreen)\n![progress](https://img.shields.io/badge/dynamic/json?label=progress\u0026query=progress\u0026url=https://dieghernan.github.io/spain-munic-bot/assets/lasttweet.json)\n![last-visited](https://img.shields.io/badge/dynamic/json?label=last%20visited\u0026query=lastseen\u0026url=https://dieghernan.github.io/spain-munic-bot/assets/lasttweet.json\u0026style=social)\n![last-tweet](https://img.shields.io/badge/dynamic/json?label=last%20tweet\u0026query=lasttweet\u0026url=https://dieghernan.github.io/spain-munic-bot/assets/lasttweet.json\u0026style=social\u0026logo=twitter)\n![Followers](https://img.shields.io/twitter/follow/spainmunic?label=Followers\u0026style=social)\n[![ko-fi](https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg)](https://ko-fi.com/dieghernan)\n\n## A Twitter bot written in R\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://twitter.com/spainmunic\"\u003e\u003cimg src=\"https://img.shields.io/badge/Follow-%40spainmunic-blue?style=flat\u0026labelColor=1DA1F2\u0026color=1DA1F2\u0026logo=twitter\u0026logoColor=white\" alt=“Follow me\" height=25 \u003e\u003c/a\u003e\n\u003c/p\u003e\n\nI tweet a random map of a Spanish town together with its name, province, and\nautonomous community (and a inset map of Spain showing the region and the\ncommunity). The bot is set to run every 20 minutes.\n\n## [I have a website!!](https://dieghernan.github.io/spain-munic-bot/)\n\n## **:house: Buildings**\n\nI create a map of the Urban Growth of Spanish cities, based on the works of\n**Dominic Royé:** [Visualize urban\ngrowth](https://dominicroye.github.io/en/2019/visualize-urban-growth/)\n\n![sample](assets/img/sample.png)\n\nFind\n[here](https://github.com/dieghernan/spain-munic-bot/blob/main/assets/datalog.csv)\nall the maps generated by the bot.\n\n## :airplane: The journey\n\n![journey](assets/img/journey.png)\n\n## :package: R packages\n\nCore packages used in the project are:\n\n-   [{CatastRo}](https://ropenspain.github.io/CatastRo/) for the buildings.\n-   [{mapSpain}](https://ropenspain.github.io/mapSpain/) for the location of the\n    municipalities.\n-   [{ggplot2}](https://ggplot2.tidyverse.org/) for plotting,\n-   [{rtweet}](https://docs.ropensci.org/rtweet/) for posting,\n\nOther packages used are {sf}, {dplyr} and another common supporting packages.\n\nThis project uses {renv} for ensuring fully reproducibility across platforms.\n\n## 🙌🏻 Credits\n\n-   Based on\n\n    -   [italiancomuni](https://twitter.com/italiancomuni), by \\@espinielli.\n\n-   Automation:\n\n    -   GitHub Actions as per \\@espinielli's [GitHub\n        Repo](https://github.com/espinielli/italian-comuni-bot).\n\n-   sources:\n\n    -   [mapSpain](https://ropenspain.github.io/mapSpain/) R package.\n    -   [osmdata](https://docs.ropensci.org/osmdata/) for the streets.\n\n## :grey_question: How to run it\n\nFrom the command line it is enough to run the following command:\n\n        $ Rscript R/trigger.R\n\nThis will trigger `R/01_create_map.R` and compose the tweet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdieghernan%2Fspain-munic-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdieghernan%2Fspain-munic-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdieghernan%2Fspain-munic-bot/lists"}