Catalog PyPI
Back to packageRELEASE DETAILS

0.1.0

PyPI

aiodcard

Dcard crawler using asyncio(coroutine)

coroutinecrawlerdcard
Published19 Aug 2015
Direct dependencies0
Transitive dependenciesNot calculated

README

Version 0.1.0 documentation
aiodcard
==============

Dcard crawler using asyncio(coroutine)


Feature
-------
| Get article list and content using coroutine


Dependencies
------------
* Python 3.3 and :mod:`asyncio` or Python 3.4+
* aiohttp


Installation
------------
::

	python setup.py install

or 

::

    pip install aiodcard


Example
-------

::

    import asyncio

    import aiohttp
    import aiodcard

    @asyncio.coroutine
    def get_funny_articles():
        session = aiohttp.ClientSession()
        forum_name = 'funny'
        page_index = 1
        result = yield from aiodcard.get_articles_of_page(session, forum_name, page_index)
        print(result)

    def main():
        loop = asyncio.get_event_loop()
        loop.run_until_complete(get_funny_articles())

    if __name__ == '__main__':
        main()


Todo
----
* test all functions
  

Authors and License
-------------------
The ``aiodcard`` package is written by Chien-Wei Huang. It’s MIT licensed and freely available.

Feel free to improve this package and send a pull request to GitHub.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
aiodcard-0.1.0.tar.gz

sdist · 3.36 KB · Python source

Source file

Repository

PENDING
carlcarl/aiodcard

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:48 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:2191481a3991037062ce91c3752e01bf76cfae720bdf3de0b6e05fce26498df5

Other collected versions

View all collected versions →