download_cjsg: Download results of a query on second degree lawsuits filed...

Description Usage Arguments Value See Also

Description

Downloads an HTML with the results obtained from querying a dataset of all second degree lawsuits and then one HTML for each page of results (at most max_page pages). query should be the string to look for in the lawsuits and clases, courts, etc. should be the filtering parameters (make sure to use cjsg_table() to get lists of all valid codes for these arguments).

Usage

1
2
3
4
download_cjsg(query, path = ".", classes = "", subjects = "",
  courts = "", trial_start = "", trial_end = "",
  registration_start = "", registration_end = "", min_page = 1,
  max_page = 1, cores = 1, wait = 0.5, tj = "tjsp", ...)

Arguments

query

Character vector with search query

path

Path to directory where to save HTMLs

classes

Character vector with class IDs (see cjsg_table())

subjects

Character vector with subject IDs (see cjsg_table())

courts

Character vector with court IDs (see cjsg_table())

trial_start

Lower bound for trial date

trial_end

Upper bound for trial date

registration_start

Lower bound for registration date

registration_end

Upper bound for registration date

min_page

First page of results to download

max_page

Last page of results to download. If is NA or Inf, we use peek_cjsg.

cores

The number of cores to be used when downloading. If you use more than one core and is dowloading more than 15 pages, you will probably have your IP blocked.

wait

Seconds to wait between downloads. Does not work properly if cores is greater than one, so you will probably have your IP blocked anyway.

tj

TJ from which to get data (only works with TJSP for now)

...

Param rapporteurs for download_cjsg_tjmg()

Value

A character vector with the paths to the downloaded files

See Also

cjsg_table(), browse_table()


jtrecenti/esaj documentation built on June 20, 2019, 7:13 p.m.