statements_get_statements_data: Getting data about statements

Description Usage Arguments Details Value Note Author(s) Examples

View source: R/statements_get_statements_data.R

Description

Function statements_get_statements_data gets data about statements.

Usage

1
2
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

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)

sejmRP documentation built on May 2, 2019, 5:16 a.m.