wrapper for the Drukarnia API
Project description
drukarnia-api
Overview
drukarnia-api
is a Python library designed as a wrapper for the Drukarnia API, providing various functionalities for interacting with the platform. It simplifies the process of accessing and manipulating data from the web, enabling users to seamlessly work with Drukarnia. The library is actively being developed and already includes almost all of the necessary features. We are working diligently to implement the remaining features as quickly as possible.
Simple Usage
from drukarnia_api import Search
async def get_author_article_titles():
search = Search()
async with search:
search_res = await search.find_author('cupomanka')
# most probable
cupomanka = search_res[0]
# Collect all data about the user
await cupomanka.collect_data()
# Get user articles
articles = await cupomanka.articles
# Print all titles
for article in articles:
print(await article.title)
if __name__ == '__main__':
import asyncio
loop = asyncio.get_event_loop()
loop.run_until_complete(get_author_article_titles())
Advance Examples: usage.ipynb
Installation
You can install drukarnia-api
using pip:
pip install drukarnia-api
Contributing
Contributions to drukarnia-api
are welcome! If you find any issues or have suggestions for improvement, please open an issue or contact me.
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
Built Distribution
Hashes for drukarnia_api-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d733972e225706980893ab999052d969c3fc2d12d9c37c1f80020abadb8e5d77 |
|
MD5 | b609c1f84fe18555caabf1bf830ba379 |
|
BLAKE2b-256 | 936b7178cacc18c674c2eef9af70620e996202562b821753aa90f1d49dcfeadc |