Current collected state Current
Observed since 21 Oct, 11:48 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Dcard crawler using asyncio(coroutine)
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.Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 19 Aug 2015 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 11:48 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:f59867932689e999433182706ff909d7866653a8ac6a6abdb261e77c0cb12608