Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Dcard crawler using asyncio(coroutine)

Project description


Dcard crawler using asyncio(coroutine)

| Get article list and content using coroutine

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


python install



pip install aiodcard



import asyncio

import aiohttp
import aiodcard

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)

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

if __name__ == '__main__':

* 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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for aiodcard, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size aiodcard-0.1.0.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page