All Projects → courtsbr → esaj

courtsbr / esaj

Licence: GPL-2.0 license
Scrapers for many e-SAJ systems

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to esaj

Hooman
http interceptor to hoomanize cloudflare requests
Stars: ✭ 82 (+134.29%)
Mutual labels:  scraper, captcha
Captcha-Tools
All-in-one Python (And now Go!) module to help solve captchas with Capmonster, 2captcha and Anticaptcha API's!
Stars: ✭ 23 (-34.29%)
Mutual labels:  scraper, captcha
proxycrawl-python
ProxyCrawl Python library for scraping and crawling
Stars: ✭ 51 (+45.71%)
Mutual labels:  scraper
oge
Page metadata as a service
Stars: ✭ 22 (-37.14%)
Mutual labels:  scraper
go-jd
京东App自动登录,在线商品自动下单
Stars: ✭ 158 (+351.43%)
Mutual labels:  scraper
Linkedin-Client
Web scraper for grabing data from Linkedin profiles or company pages (personal project)
Stars: ✭ 42 (+20%)
Mutual labels:  scraper
ocr api server
使用ddddocr的最简api搭建项目,支持docker
Stars: ✭ 222 (+534.29%)
Mutual labels:  captcha
Laosheng.top
老生常谈,节约您的搜寻时间。Laosheng.top 中国新闻云媒体,中央外宣与一带一路云媒体,五大洲的报纸、电视、通讯社;The Belt and Road Cloud Media。 解放军微博阵列,明星微博粉丝榜。中央有关部门大全,政府政协人大两院。中国千县地名图,联合国有关部门。 大萌望海楼,找法不用愁。中国法律体系概览,大萌法律读本。 老生常谈排行榜,难搜到的好网站。LSIP 大规模集成网页。😤
Stars: ✭ 21 (-40%)
Mutual labels:  law
angel.co-companies-list-scraping
No description or website provided.
Stars: ✭ 54 (+54.29%)
Mutual labels:  scraper
youtube
Create a ZIM file from a Youtube channel/username/playlist
Stars: ✭ 25 (-28.57%)
Mutual labels:  scraper
captcha-solver
Library and CLI for automating captcha verification across multiple providers.
Stars: ✭ 101 (+188.57%)
Mutual labels:  captcha
wikipedia for humans
No description or website provided.
Stars: ✭ 44 (+25.71%)
Mutual labels:  scraper
leumi-leumicard-bank-data-scraper
Open bank data for Leumi bank and Leumi card credit card
Stars: ✭ 28 (-20%)
Mutual labels:  scraper
copycat
A PHP Scraping Class
Stars: ✭ 70 (+100%)
Mutual labels:  scraper
gutenberg
Scraper for downloading the entire ebooks repository of project Gutenberg
Stars: ✭ 100 (+185.71%)
Mutual labels:  scraper
Raid-Protect-Discord-Bot
A Discord Bot that allows you to protect your Discord server with captcha, anti profanity, anti nudity image, anti spam, account age required, logs...
Stars: ✭ 182 (+420%)
Mutual labels:  captcha
scraper
Node.js based scraper using headless chrome
Stars: ✭ 45 (+28.57%)
Mutual labels:  scraper
premeStock
Monitors for restocks
Stars: ✭ 53 (+51.43%)
Mutual labels:  scraper
city-codes
Brazilian city names and official codes, IBGE, LexML and others
Stars: ✭ 39 (+11.43%)
Mutual labels:  brazil
municipios-br
Dados em formato aberto sobre municípios e unidades federativas do Brasil.
Stars: ✭ 58 (+65.71%)
Mutual labels:  brazil

esaj

Made In Brazil Travis-CI Build Status AppVeyor Build Status

Overview

The esaj R package is a simple interface that allows you to download multiple kinds of files from Brazil's e-SAJ (Electronic Justice Automation System) portals. With this package you can save and parse lawsuits, queries, and decisions with very simple, tidyverse compliant functions.

To install esaj, run the code below:

# install.packages("devtools")
devtools::install_github("courtsbr/esaj")

Usage

Lawsuits

Before esaj if you wanted to gather information about lawsuits being processed by Brazil's state-level Judiciary, you would have to go to each state's e-SAJ portal, manually input each lawsuit's ID, break a capthca, and only then download an HTML with the information you wanted; now you can simply run download_cpopg() or download_cposg(), and spend your valuable time analysing the data.

# Download first degree lawsuits from multiple states
ids <- c(
  "0123479-07.2012.8.26.0100",
  "0552486-62.2015.8.05.0001",
  "0303349-44.2014.8.24.0020")
esaj::download_cpopg(ids, "~/Desktop/")
#> [1] "/Users/user/Desktop/01234790720128260100.html"
#> [2] "/Users/user/Desktop/05524866220158050001.html"
#> [3] "/Users/user/Desktop/03033494420148240020.html"

# Download second degree lawsuits from São Paulo
ids <- c(
  "1001869-51.2017.8.26.0562",
  "1001214-07.2016.8.26.0565")
esaj::download_cposg(ids, "~/Desktop/")
#> [1] "/Users/user/Desktop/10018695120178260562.html"
#> [2] "/Users/user/Desktop/10012140720168260565.html"

For more information on how to use these functions and which TJs are implemented, please see Downloading Lawsuits.

Queries

Besides downloading lawsuits (see the Downloading Lawsuits article), esaj also allows the user to download the results of a query on lawsuits. This kind of query is very useful for finding out what lawsuits contain certain words, were filed in a given period, were filed in a given court, etc.

# Download results of a simple first degree query
esaj::download_cjpg("recurso", "~/Desktop/")
#> [1] "/Users/user/Desktop/search.html"
#> [2] "/Users/user/Desktop/page1.html"

# Download results of a slightly more complex second degree query
esaj::download_cjsg("recurso", "~/Desktop/", classes = c("1231", "1232"))
#> [1] "/Users/user/Desktop/search.html"
#> [2] "/Users/user/Desktop/page1.html"

For more information on how to use these functions and all their auxiliary methods (like peek_cj*g() and cj*g_table()), please see Downloading Queries.

Decisions

Of all functions in the esaj package, download_decision() is probably the simplest: it downloads the PDF belonging to a decision and that's it.

# Download one decision
esaj::download_decision("10000034", "~/Desktop/")
#> [1] "/Users/user/Desktop/10000034.pdf"

# Download more than one decision
esaj::download_decision(c("10800758", "10000034"), "~/Desktop/")
#> [1] "/Users/user/Desktop/10800758.pdf"
#> [2] "/Users/user/Desktop/10000034.pdf"

For more information on how to use this function, please see Downloading Decisions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].