Skip to content

DanielGnzlzVll/rjco_scraping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rjco_scraping (RAMA JUDICIAL COLOMBIANA)

This package allows you to do web scraping on the website of 'Rama Judicial Colombiana'.

Requirements

The major requirement is the web browser Google Chrome, this program ONLY work properly with Chrome

Install

git clone https://github.com/DanielGnzlzVll/rjco_scraping.git
cd rjco_scraping

new virtualenv

virtualenv rjco
source rjco/bin/activate
pip install .

or

python setup install

Usage

from console

python -m rjco_scraping 
## search by ´´´numero de radicado´´
python -m rjco_scraping --code
rjco_scraping

Import from python

import rjco_scraping
results = rjco_scraping.scraping_by_text(text2search="sura")
# or 
rjco_scraping.scraping_by_text(text2search="sura", output_file="result.xlsx")

# search by ´´numero de radiacion´´
rjco_scraping.scraping_by_number(code="05088310300120150079003",
    output_file="result.json"
)

Windows

You can download the latest release from here then open the .exe file.