<commit_before>PyOpenload |StarButton|
=======================

python wrapper for `Openload.co`_ `API`_.

|pypi| |format| |CodacyBadge| |license|

Install
-------

.. code:: sh

    pip install pyopenload

Usage
-----

.. code:: python

    from openload import OpenLoad

    openload = OpenLoad('login', 'key')

    # User email
    account_info = openload.account_info()
    print(account_info['email'])

    # Download Ticket
    download_data = openload.prepare_download('file_id')
    print(download_data['ticket'])
    print(download_data['captcha_url'])
                         
    # Download Link<commit_msg>Update README.rst<commit_after>PyOpenload |StarButton|
=======================

python wrapper for `Openload.co`_ `API`_.

|pypi| |format| |CodacyBadge| |license|

Install
-------

.. code-block:: bash

    $ pip install pyopenload


Usage
-----

.. code:: python

    from openload import OpenLoad

    openload = OpenLoad('login', 'key')

    # User email
    account_info = openload.account_info()
    print(account_info['email'])

    # Download Ticket
    download_data = openload.prepare_download('file_id')
    print(download_data['ticket'])
    print(download_data['captcha_url'])
                         
    # Download Link
{'fraction_non_alphanumeric': 0.1636073423782921, 'fraction_numerical': 0.0, 'mean_word_length': 3.0714285714285716, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1613046', 'n_tokens_mistral': 399, 'n_tokens_neox': 373, 'n_words': 80}