Metadata-Version: 1.2
Name: dvach.api
Version: 0.0.5.1
Summary: Python 2ch.hk API wrapper
Home-page: https://github.com/anonim-legivon/dvach.api
Author: anonim-legivon
Author-email: fadedDexofan@protonmail.com
License: Apache License 2.0
Description-Content-Type: UNKNOWN
Description: api2ch for 2ch.hk
        =================
        
        |License|
        |PYPI|
        |Python|
        |Contribs|
        |Issues|
        |Codacy Badge|
        
        2ch.hk API Wrapper
        
        Requirements
        ------------
        
        -  Python (3.4, 3.5, 3.6)
        
        Install
        -------
        
        ::
        
            pip install dvach.api
        
        Usage
        -----
        
        Getting threads on board
        ~~~~~~~~~~~~~~~~~~~~~~~~
        
        ::
        
            from api2ch import Api
        
            api = Api('b')
        
            board = api.get_board()
        
            for thread in board:
                print(f'Num: {thread.num}, Replies: {thread.reply_count}, Post: {thread.post.comment}')
        
        Getting posts in thread
        ~~~~~~~~~~~~~~~~~~~~~~~
        
        ::
        
            from api2ch import Api
        
            api = Api('abu')
        
            thread = api.get_thread(42375)
        
            for post in thread:
                print(post.comment)
        
        Getting top of threads on board
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        
        ::
        
            from api2ch import Api
        
            api = Api()
        
            # board='доска', method='метод сортировки (views, score, posts), num=количество тредов
            top = api.get_top(board='pr', method='posts', num=10)
        
            for thread in top:
                print(thread)
        
        Bug tracker
        -----------
        
        Warm welcome for suggestions and concerns
        
        https://github.com/anonim-legivon/dvach.api/issues
        
        License
        -------
        
        Apache License 2.0 - https://www.apache.org/licenses/LICENSE-2.0
        
        .. |License| image:: https://img.shields.io/pypi/l/dvach.api.svg
            :target: https://pypi.python.org/pypi/dvach.api
        .. |PYPI| image:: https://img.shields.io/pypi/v/dvach.api.svg
            :target: https://pypi.python.org/pypi/dvach.api
        .. |Python| image:: https://img.shields.io/pypi/pyversions/dvach.api.svg
            :target: https://pypi.python.org/pypi/dvach.api
        .. |Contribs| image:: https://img.shields.io/github/contributors/anonim-legivon/dvach.api.svg
            :target: https://github.com/anonim-legivon/dvach.api/graphs/contributors
        .. |Codacy Badge| image:: https://api.codacy.com/project/badge/Grade/6d3154f7d4514d10ac95495e0e06965b
            :target: https://www.codacy.com/app/fadedDexofan/dvach.api?utm_source=github.com&utm_medium=referral&utm_content=anonim-legivon/dvach.api&utm_campaign=Badge_Grade
        .. |Issues| image:: https://img.shields.io/github/issues/anonim-legivon/dvach.api.svg
            :target: https://github.com/anonim-legivon/dvach.api/issues
Keywords: dvach 2ch 2ch.hk api wrapper
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Topic :: Internet
Requires-Python: >=3.6
