Skip to main content

Unofficial API for Eksi Sozluk.

Project description

eksipy

kutsal bilgi kaynağı için unofficial ve private ASYNC API, giriş yapabilir; mesaj gönderebilir, entry gönderebilirsiniz.

PyPI - License DeepSource PyPI - Downloads

bu proje mobil(rest) api veya herhangi bir api kullanmamaktadır. tamamen requests ile web'e istek gönderilmektedir. requests-html ile de (PyQuery) ile de parçalanmaktadır. projenin temel amacı ekşi sözlükte ne yapabiliyorsanız bu kütüphane yapabilmektedir. v2.0 itibariyle çoğu fonksiyon desteklenmektedir.

bu kütüphane python 3.6 ve üstünde çalışmaktadır.

📦 Kurulum

pip kullanarak kolay bir şekilde kurabilirsiniz:

pip install eksipy

🛠 Doküman

Dokümanlar docs klasöründedir.

🔷 Örnek Kullanımlar

Burdaki klasöre bakabilirsiniz

Ayrıca hemen birkaç örnek verelim.

Başlık entrylerini getirelim:

import eksipy
import asyncio
import os


async def getTopic():
    eksi = eksipy.Eksi()
    topic = await eksi.getTopic("php")
    entrys = await topic.getEntrys()
    for entry in entrys:
        print("*" * 10)
        print(entry.text())
        print(entry.author.nick)
        print("*" * 10)

loop = asyncio.get_event_loop()
loop.run_until_complete(getTopic())

☑️ To-Do

  • Kendi Exception sınıflarımız.
  • Olay.
  • Daha iyi bir dokümantasyon.
  • Tüm kullanıcı istatistikleri, görseller, sorunsallar...
  • Zengin bir CLI uygulaması
  • Özel mesaj
  • Async
  • Testler
  • Sorunsallar

💻 Contributors

Developer Yusuf Usta, yusuf@usta.email

📒 License

eksipy is available under the GPLv3 license. See the LICENSE file for more info.

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

eksipy-2.0.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

eksipy-2.0.1-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file eksipy-2.0.1.tar.gz.

File metadata

  • Download URL: eksipy-2.0.1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for eksipy-2.0.1.tar.gz
Algorithm Hash digest
SHA256 bf398be5776f0431978c878f38e8604602171482c0e092b748de0cc6d5a4624b
MD5 b2c2e90f5e1fc84510cf5e02a84018ce
BLAKE2b-256 612b26be510e8647ad4b311d67d097820774ecb0b764c50afcba05f5e127de5d

See more details on using hashes here.

File details

Details for the file eksipy-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: eksipy-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for eksipy-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d17a2728286c261866044a6382c6da21e9ba1c47d6f4c2818bb1701b8a2ccb8
MD5 ff3b1eb0786c9603ee1204515a0a4a9a
BLAKE2b-256 28cfd2d49c42e66856cb40467b27aff01fba2abea1c1862217a87e76a31e031f

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