Description Usage Arguments Value See Also
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).
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", ...)
|
query |
Character vector with search query |
path |
Path to directory where to save HTMLs |
classes |
Character vector with class IDs (see |
subjects |
Character vector with subject IDs (see |
courts |
Character vector with court IDs (see |
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 |
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
|
tj |
TJ from which to get data (only works with TJSP for now) |
... |
Param |
A character vector with the paths to the downloaded files
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.