Skip to main content
dcard_coworker
==============

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 dcard_coworker


Example
-------

::

import asyncio

import aiohttp
import dcard_coworker

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

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

if __name__ == '__main__':
main()


Todo
----
* Add testings
* Add more examples


Authors and License
-------------------
The ``dcard_coworker`` 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.

Metadata

Release files for dcard_coworker 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dcard_coworker 0.1.0
File Size Uploaded Provenance Actions
dcard_coworker-0.1.0.tar.gz 3.0 kB Without provenance Details for dcard_coworker-0.1.0.tar.gz

Release files / dcard_coworker-0.1.0.tar.gz

Download URL dcard_coworker-0.1.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b3b3a8812ce77446382a725b3e6ad5ceeed8d30fc57425ee44e23754ed1833d0
BLAKE2b-256 checksum
How to use checksums
9a6a42c4e0e7eb3b6a585a327fedc6ea22c3b03063be0ed4c6dafcf1d646d282
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for dcard_coworker 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page