Description Usage Arguments Details Value Note Author(s) Examples
View source: R/statements_get_statements_data.R
Function statements_get_statements_data
gets data about statements.
1 2 | statements_get_statements_data(statements_links,
home_page = 'http://www.sejm.gov.pl/')
|
statements_links |
list of elements of XMLNodeSet class with statements' ids, links and their's authors |
home_page |
main page of polish diet: http://www.sejm.gov.pl/ |
Function statements_get_statements_data
gets data about statements like
author, page with content of statement and it's id.
data frame with three columns: names, statements_links, ids
All information is stored in PostgreSQL database.
Piotr Smuda, Tomasz Mikolajczyk
1 2 3 4 5 6 7 8 | ## Not run:
page <- safe_html(paste0('http://www.sejm.gov.pl/Sejm7.nsf/',
'wypowiedz.xsp?posiedzenie=15&dzien=1&wyp=0'))
page <- html_nodes(page, '.stenogram')
statements_links <- html_nodes(page, 'h2 a')
statements_get_statements_data(statements_links,
home_page = 'http://www.sejm.gov.pl/Sejm7.nsf/')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.