==============
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.
Metadata
Release files for aiodcard 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiodcard-0.1.0.tar.gz | 3.4 kB | Without provenance | Details for aiodcard-0.1.0.tar.gz |
Release files / aiodcard-0.1.0.tar.gz
| Download URL | aiodcard-0.1.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10bdcb942518ffaf71fe90b329b297be3a72808a967f5d3ff1e628dad8a595cd
|
|
BLAKE2b-256 checksum How to use checksums |
5bb795d2acd4c653082345d4b27169654d6ab104abb1d6280decda35910266fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for aiodcard 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.