statements_get_statements_data {sejmRP}R Documentation

Getting data about statements

Description

Function statements_get_statements_data gets data about statements.

Usage

statements_get_statements_data(statements_links,
  home_page = 'http://www.sejm.gov.pl/')

Arguments

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/

Details

Function statements_get_statements_data gets data about statements like author, page with content of statement and it's id.

Value

data frame with three columns: names, statements_links, ids

Note

All information is stored in PostgreSQL database.

Author(s)

Piotr Smuda, Tomasz Mikolajczyk

Examples

## 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)


[Package sejmRP version 1.3.4 Index]