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.
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.