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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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