Skip to main content

A Python library that enables semi-automatic downloading of decisions based on year and decision number from the Supreme Court decision search interface.

Project description

emsâl ⚖︎

GPLv3 License GitHub followers

[TR] Yargıtay karar arama arayüzünden kararların, yıl ve karar numarası temelinde yarı otomatik olarak indirilmesini sağlayan Python kütüphanesi.

[EN] A Python library that enables semi-automatic downloading of decisions based on year and decision number from the Supreme Court decision search interface.

➥Yükleme / Installation

emsâl, pip paket yönetim sistemi kullanarak yüklenebilir.

You can use pip package manager system to install emsâl.

  pip install emsal

➥Kullanım / Usage

import emsal

emsal.get_decisions(driver_path, '2019', last_no='1978')

➥Nasıl çalışır? / How does it work?

[TR] emsâl kütüphanesi temel olarak girdi olarak verilen yılda, belirtilen karar numarası aralığındaki, ilgili anahtar kelimeyi geçiren kararları (en fazla bin adet olmak üzere) bulunulan dizine metin belgesi olarak kaydeder.

Programı çalıştırdığınızda aşağıdaki gif'te görüleceği üzere program otomatik olarak anahtar kelime, tarih ve karar numarası kutularını doldurur ve ardından Captcha'yı girmeniz için 10 saniye bekler. Ardından kararları tek tek ilgili dizine kaydeder. Bu noktadan sonra bir şey yapmanıza gerek yoktur. Sistem kararları biner biner getirdiği için, 1000 karar sonra program otomatik olarak durur. Eğer devam etmek istiyorsanız kaldığınız karar numarasından tekrar başlamanız gerekir.

[EN] The emsâl library basically saves the decisions (maximum one thousand) that include the relevant keyword in the specified decision number range and in the given year as a text document in the current directory.

When you run the program, the program automatically fills in the keyword, date and decision number boxes, as can be seen in the gif below, and then waits 10 seconds for you to enter the Captcha. Then it saves the decisions one by one in the relevant directory. You don't need to do anything after this point. The program stops automatically after 1000 decisions, as the system fetches the decisions one thousand at a time. If you want to continue, you have to start again from the decision number where you left off.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

emsal-0.1.8.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

emsal-0.1.8-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file emsal-0.1.8.tar.gz.

File metadata

  • Download URL: emsal-0.1.8.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for emsal-0.1.8.tar.gz
Algorithm Hash digest
SHA256 08f5fa891bb78eaa7e8976c4cd45b0357145b5c595e5aa33797c61a2fcb7360b
MD5 55b39c2fc1f18858d9c9210609b39917
BLAKE2b-256 4304cbc0ab1ff92bda638abdb48cd9a680544e66f50662660b305779830dc7e0

See more details on using hashes here.

File details

Details for the file emsal-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: emsal-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for emsal-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 cd14ede7efdf8aa9ac6926ca81b700ff310d549ef8b215577ab66105b1244611
MD5 54fee5a71541b5acb718e1fc4e829802
BLAKE2b-256 61bb4d5612a7551e6e6075762d53b48907251b1ae1e50b2df34b16f14669eaf4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page