Skip to main content

wrapper for the Drukarnia API

Project description

drukarnia-api

License

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

drukarnia-api-1.1.2.tar.gz (17.5 kB view hashes)

Uploaded Source

Built Distribution

drukarnia_api-1.1.2-py3-none-any.whl (22.8 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