{ "info": { "author": "John Lin", "author_email": "linton.tw@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "Pydcard\n=======\n\nThis is a Dcard API wrapper\n\nOverview\n--------\n\nPydcard is a Python wrapper for accessing the Dcard API.\n\n**Pydcard only support in Python 3**\n\nInstallation\n------------\n\nThe current release of Pydcard is available through `PyPi`_:\n\n::\n\n pip install pydcard\n\nDependencies\n------------\n\n``pip`` does install dependencies\n\n- `requests`_\n\nUsage\n-----\n\nThe basic usage\n\n::\n\n import pydcard\n from pprint import pprint\n\n # Get top posts in *all* forum from Dcard. The parameter is page number.\n page_one = pydcard.get_all_top_posts(1)\n\n # Each page have 20 threads, now get the id in index 0.\n # i.e. the first thread's id.\n th_one_id = page_one[0].get('id')\n\n # Using thread id to get the post content\n pprint((pydcard.get_post(th_one_id)))\n\nThe complicated example (Need to install `prettytable`_ package)\n\n.. figure:: ./screenshots/dcard_term.gif\n :alt: dcard\\_term\n\n dcard\\_term\n\nAPI\n---\n\n- **get\\_post(post\\_id)**\n\n Getting post content by post ID.\n\n- **get\\_all\\_top\\_posts(to\\_page\\_num)**\n\n Getting top posts from *all* forum. From page 1 to page\n ``to_page_num``.\n\n- **get\\_all\\_new\\_posts(to\\_page\\_num)**\n\n Getting recently posts from *all* forum. From page 1 to page\n ``to_page_num``.\n\n- **get\\_all\\_page(page\\_num)**\n\n Getting recently posts from *all* forum, only one page.\n\nRelated\n-------\n\n- See Node.js Dcard API wrapper package in `npm`_.\n\n.. _PyPi: https://pypi.python.org/pypi/pydcard\n.. _requests: https://github.com/kennethreitz/requests\n.. _prettytable: https://pypi.python.org/pypi/prettytable\n.. _npm: https://www.npmjs.com/package/dcard", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/John-Lin/pydcard", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "pydcard", "package_url": "https://pypi.org/project/pydcard/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pydcard/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/John-Lin/pydcard" }, "release_url": "https://pypi.org/project/pydcard/0.0.8/", "requires_dist": null, "requires_python": null, "summary": "This is a Dcard API wrapper", "version": "0.0.8" }, "last_serial": 1616482, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "9adddc68674fe7f7a379ef427f230b43", "sha256": "b6b2c1ff49a614dd4bc6a43878edd361bb8e1fa8bbb7b7cee59e729172490900" }, "downloads": -1, "filename": "pydcard-0.0.1.tar.gz", "has_sig": false, "md5_digest": "9adddc68674fe7f7a379ef427f230b43", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1578, "upload_time": "2015-07-01T06:52:58", "url": "https://files.pythonhosted.org/packages/15/17/30d8e762d1d1b6c54d9880c67d97ab06db7f85fd862f524d4f4bf540bebe/pydcard-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "5872221caf31c3191065d50b3241ecd2", "sha256": "b45b4f02d6095ecc60767a80767e9e461dd0c6d7a3f45ec02e7aaab2b395c944" }, "downloads": -1, "filename": "pydcard-0.0.2.tar.gz", "has_sig": false, "md5_digest": "5872221caf31c3191065d50b3241ecd2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1935, "upload_time": "2015-07-01T09:33:56", "url": "https://files.pythonhosted.org/packages/d8/68/377bc6d9443d39aff92531bcdc825a138761eb4c17a1948488f96bcb7a4f/pydcard-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "57e95cb10aefb2c3f4989799c02d51cd", "sha256": "68d0169a8486c5f7b70f62ad88cecab7191db5b62e4e2858b6e37f697e9a0ccb" }, "downloads": -1, "filename": "pydcard-0.0.3.tar.gz", "has_sig": false, "md5_digest": "57e95cb10aefb2c3f4989799c02d51cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2146, "upload_time": "2015-07-01T09:50:31", "url": "https://files.pythonhosted.org/packages/de/e2/aa40599b78c5db80782ab116cb7cfff9394143bdc73623b824df9540ec6d/pydcard-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "e77e46897433bb5280ee16496d5e5e54", "sha256": "30c95507b652534da52453a7c2000bcc47347f970bd4e58d0893de02927caeb7" }, "downloads": -1, "filename": "pydcard-0.0.4.tar.gz", "has_sig": false, "md5_digest": "e77e46897433bb5280ee16496d5e5e54", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2620, "upload_time": "2015-07-01T14:11:39", "url": "https://files.pythonhosted.org/packages/8a/00/09de1968521718c787f85102b00e9afc3e730ac73b296ce5bde523dec596/pydcard-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "a6a3ae29ff60c50daa34f0747d1908bb", "sha256": "c76f189e48194dc8b3c238819fb9b48b24c7d7874ea03f4936dec41a9f51d8e9" }, "downloads": -1, "filename": "pydcard-0.0.5.tar.gz", "has_sig": false, "md5_digest": "a6a3ae29ff60c50daa34f0747d1908bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3198, "upload_time": "2015-07-02T11:16:51", "url": "https://files.pythonhosted.org/packages/d5/77/6eea0bcf8f834414ffeffece1d0342ecc899e8bf9d23c6917f0d25211034/pydcard-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "f14940d09b952eac9cdbea8d3be690cb", "sha256": "6900ec3325e1e31a02d15fa4066f130f62455cb7ed5694a10135958e74d8086c" }, "downloads": -1, "filename": "pydcard-0.0.6.tar.gz", "has_sig": false, "md5_digest": "f14940d09b952eac9cdbea8d3be690cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2577, "upload_time": "2015-07-02T11:27:29", "url": "https://files.pythonhosted.org/packages/81/09/3866f755af73c51741d98cc4093bfecdf73938a1d962b0f0f3262e904a59/pydcard-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "cecf05cb2532be6a49a7fb423c52745d", "sha256": "80faba8cbfe36ee978d7fce213811fefe9d9b7a8ad3d0134c7415eb1558b8d80" }, "downloads": -1, "filename": "pydcard-0.0.7.tar.gz", "has_sig": false, "md5_digest": "cecf05cb2532be6a49a7fb423c52745d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3476, "upload_time": "2015-07-02T11:34:13", "url": "https://files.pythonhosted.org/packages/01/fd/55fb0e95bfefed73a7635f237a598e6a94fa7d9ab699218bb3b210b5face/pydcard-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "17fcd57899b0b7761bdfd4adec9f3a4b", "sha256": "971de9cde6e63deab6b7fa0f77aea027f56f47459851201bce5c2d2d6c932199" }, "downloads": -1, "filename": "pydcard-0.0.8.tar.gz", "has_sig": false, "md5_digest": "17fcd57899b0b7761bdfd4adec9f3a4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 298035, "upload_time": "2015-07-02T13:49:16", "url": "https://files.pythonhosted.org/packages/a9/05/a718fd112c2d089607bce66c865de7b845544facf1889d6e573c687ddae0/pydcard-0.0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "17fcd57899b0b7761bdfd4adec9f3a4b", "sha256": "971de9cde6e63deab6b7fa0f77aea027f56f47459851201bce5c2d2d6c932199" }, "downloads": -1, "filename": "pydcard-0.0.8.tar.gz", "has_sig": false, "md5_digest": "17fcd57899b0b7761bdfd4adec9f3a4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 298035, "upload_time": "2015-07-02T13:49:16", "url": "https://files.pythonhosted.org/packages/a9/05/a718fd112c2d089607bce66c865de7b845544facf1889d6e573c687ddae0/pydcard-0.0.8.tar.gz" } ] }