brazilian-courts-scrappers
v0.2.5
Published
Data scrapper para fazer raspagem de dados de processos judiciais dos portais de tribunais do Brasil.
Downloads
20
Maintainers
Readme
��
�
�#� �B�r�a�z�i�l�i�a�n� �C�o�u�r�t�s� �S�c�r�a�p�p�e�r�s�
�
�
�
�B�r�a�z�i�l�i�a�n� �C�o�u�r�t�s� �S�c�r�a�p�p�e�r�s� ��� �u�m�a� �b�i�b�l�i�o�t�e�c�a� �p�a�r�a� �f�a�z�e�r� �r�a�s�p�a�g�e�m� �d�e� �d�a�d�o�s� �(�d�a�t�a� �s�c�r�a�p�p�i�n�g�)� �d�e� �p�r�o�c�e�s�s�o�s� �j�u�d�i�c�i�a�i�s� �d�o�s� �p�o�r�t�a�i�s� �d�e� �t�r�i�b�u�n�a�i�s� �d�o� �B�r�a�s�i�l�.�
�
�
�
�
�
�#�#� �I�n�s�t�a�l�a�����o�
�
�
�
�P�a�r�a� �i�n�s�t�a�l�a�r� �u�t�i�l�i�z�a�n�d�o� �n�p�m�,� �n�a� �p�a�s�t�a� �d�e� �s�e�u� �p�r�o�j�e�t�o�,� �r�o�d�e� �o� �s�e�g�u�i�n�t�e� �c�o�m�a�n�d�o��:�
�
�
�
��
��b�a�s�h�
�
� � �n�p�m� �i�n�s�t�a�l�l� �b�r�a�z�i�l�i�a�n�-�c�o�u�r�t�s�-�s�c�r�a�p�p�e�r�s�
�
�
��
�
�
��C�o�m�o� �n���o� �s�e� �t�r�a�t�a� �d�e� �u�m�a� �f�e�r�r�a�m�e�n�t�a� �d�e� �d�e�s�e�n�v�o�l�v�i�m�e�n�t�o�,� �n���o� �i�m�a�g�i�n�a�m�o�s� �n�e�n�h�u�m�a� �r�a�z���o� �p�a�r�a� �i�n�s�t�a�l�a�r� �c�o�m�o� ��-�-�s�a�v�e�-�d�e�v�
�.�
�
�#�#� �U�s�o�/�E�x�e�m�p�l�o�s�
�
�
�
�B�r�a�z�i�l�i�a�n� �C�o�u�r�t�s� �S�c�r�a�p�p�e�r�s� ��� �u�m�a� �f�e�r�r�a�m�e�n�t�a� �c�r�i�a�d�a� �p�a�r�a� �s�e�r� �i�n�j�e�n�t�a�d�a� �c�o�m�o� �_�c�o�n�t�e�n�t� �s�c�r�i�p�t�_�.� �N�o� �m�o�m�e�n�t�o�,� �a� �b�i�b�l�i�o�t�e�c�a� �n���o� �f�a�z� �r�e�q�u�i�s�i�����e�s� �p�a�r�a� �o�s� �s�i�t�e�s� �d�e� �t�r�i�b�u�n�a�i�s�;� �e�m� �v�e�z� �d�i�s�s�o�,� �e�l�a� �r�e�a�l�i�z�a� �c�o�m�a�n�d�o�s� �n�a� �j�a�n�e�l�a� �d�o� �n�a�v�e�g�a�d�o�r� �(�e�m�b�o�r�a� �n�a�d�a� �i�m�p�e���a� �q�u�e� �s�e�j�a� �u�m� �n�a�v�e�g�a�d�o�r� �_�h�e�a�d�l�e�s�s�_�)�.�
�
�
�
�P�a�r�a� �u�s���-�l�a�,� �b�a�s�t�a� �s�e�g�u�i�r� �3� �p�a�s�s�o�s�:� �
�
�
�
�1�.� �I�m�p�o�r�t�e� �a� �f�u�n�����o� ��i�d�e�n�t�i�f�y�C�o�r�r�e�c�t�S�c�r�a�p�p�e�r�
�,� �p�a�s�s�a�n�d�o� �c�o�m�o� �a�r�g�u�m�e�n�t�o� �u�m� �d�o�c�u�m�e�n�t�o� �H�T�M�L�.� �A� �f�u�n�����o� �r�e�t�o�r�n�a�r��� �u�m�a� �c�l�a�s�s�e� �c�o�m� �o� �s�c�r�a�p�p�e�r� �c�o�r�r�e�s�p�o�n�d�e�n�t�e� �a�o� �T�r�i�b�u�n�a�l� �(�e�l�a� �u�s�a� ��d�o�c�u�m�e�n�t�.�U�R�L�
� �p�a�r�a� �i�d�e�n�t�i�f�i�c�a�r� �o� �t�r�i�b�u�n�a�l�)�.�
�
�
�
�2�.� �I�n�s�t�a�n�c�i�e� �e�s�s�a� �c�l�a�s�s�e�,� �p�a�s�s�a�n�d�o� �c�o�m�o� �p�a�r���m�e�t�r�o� �o� �m�e�s�m�o� �d�o�c�u�m�e�n�t�o�.�
�
�
�
�3�.� �V�o�c��� �t�e�m� �d�o�i�s� �m���t�o�d�o�s� �p�r�i�n�c�i�p�a�i�s�:� ��c�h�e�c�k�P�r�o�c�e�s�s�o�H�o�m�e�p�a�g�e�(�)�
�,� �q�u�e� �v�e�r�i�f�i�c�a� �s�e� �o� �d�o�c�u�m�e�n�t�o� �p�a�s�s�a�d�o� ��� �a� �p���g�i�n�a� �i�n�i�c�i�a�l� �d�e� �u�m� �p�r�o�c�e�s�s�o� �e� �r�e�t�o�r�n�a� �u�m� ��b�o�o�l�e�a�n�
�,� �e� ��f�e�t�c�h�P�r�o�c�e�s�s�o�I�n�f�o�(�)�
�,� �q�u�e� �r�e�a�l�i�z�a� �a� �r�a�s�p�a�g�e�m� �d�e� �d�a�d�o�s� �e� �r�e�t�o�r�n�a� �u�m� �o�b�j�e�t�o� �d�o� �t�i�p�o� ��S�c�r�a�p�p�e�d�P�r�o�c�e�s�s�o�
�,� �c�o�n�t�e�n�d�o� �a�s� �i�n�f�o�r�m�a�����e�s� �r�e�l�e�v�a�n�t�e�s� �s�o�b�r�e� �o� �p�r�o�c�e�s�s�o�.�
�
�
�
�P�o�r� �e�x�e�m�p�l�o�:�
�
�
�
��
��j�a�v�a�s�c�r�i�p�t�
�
�i�m�p�o�r�t� �{� �i�d�e�n�t�i�f�y�C�o�r�r�e�c�t�S�c�r�a�p�p�e�r� �}� �f�r�o�m� �"�b�r�a�z�i�l�i�a�n�-�c�o�u�r�t�s�-�s�c�r�a�p�p�e�r�s�"�;�
�
�
�
�c�o�n�s�t� �s�c�r�a�p�p�e�r�C�l�a�s�s� �=� �i�d�e�n�t�i�f�y�C�o�r�r�e�c�t�S�c�r�a�p�p�e�r�(�d�o�c�u�m�e�n�t�)�;�
�
�c�o�n�s�t� �s�c�r�a�p�p�e�r� �=� �n�e�w� �s�c�r�a�p�p�e�r�C�l�a�s�s�(�d�o�c�u�m�e�n�t�)�;�
�
�i�f� �(�!�s�c�r�a�p�p�e�r�.�c�h�e�c�k�P�r�o�c�e�s�s�o�H�o�m�e�p�a�g�e�(�)�)� �r�e�t�u�r�n�;�
�
�c�o�n�s�t� �p�r�o�c�e�s�s�o�I�n�f�o� �=� �a�w�a�i�t� �s�c�r�a�p�p�e�r�.�f�e�t�c�h�P�r�o�c�e�s�s�o�I�n�f�o�(�)�
�
�c�o�n�s�o�l�e�.�l�o�g�(�p�r�o�c�e�s�s�o�I�n�f�o�)�
�
�
��
�
�
�
�
�
�
�#�#� �A�u�t�o�r�e�s�
�
�
�
�-� �[�@�i�r�o�n�s�a�n�d�]�(�h�t�t�p�s�:�/�/�g�i�t�h�u�b�.�c�o�m�/�i�r�o�n�s�a�n�d�-�s�o�u�-�e�u�)�
�
�
�
�
�
�#�#� �L�i�c�e�n���a�
�
�
�
�[�A�p�a�c�h�e� �2�.�0�]�(�h�t�t�p�s�:�/�/�c�h�o�o�s�e�a�l�i�c�e�n�s�e�.�c�o�m�/�l�i�c�e�n�s�e�s�/�a�p�a�c�h�e�-�2�.�0�/�)�