Skip to content

Instantly share code, notes, and snippets.

@vanatteveldt
Created November 18, 2019 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanatteveldt/d209e9b64d82ad6b6c2d9cfbd99356f7 to your computer and use it in GitHub Desktop.
Save vanatteveldt/d209e9b64d82ad6b6c2d9cfbd99356f7 to your computer and use it in GitHub Desktop.
library(rvest)
for (page in 1:10) {
url = str_c("https://www.abgeordnetenwatch.de/bundestag/abstimmungen?page=", page)
message(url)
urls = read_html(url) %>% rvest::html_nodes(".mh-item a") %>% html_attr("href")
print(urls)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment