{ "info": { "author": "blackrose514", "author_email": "dmtri3sukuna@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# Touhou-ura\n\nPython tool to get or/and download data from touhou-ura threads (futaba).\n\n## Installation\n\n```bash\npip install touhou-ura\n```\nRequirements: [requests](https://pypi.org/project/requests/),\n[tqdm](https://pypi.org/project/tqdm/), \n[beautifulsoup4](https://pypi.org/project/beautifulsoup4/)\n\n\n## Usage\n\n```python\nfrom touhou_ura import ThUra\n\nth_ura = ThUra()\n```\n### Methods\n\n* `threads_all()` \nGet all threads currently shows. [Return: list] \n\n Optional params:\n * sort: (1=latest, 2=oldest, 3=comments(desc), 4=comments(asc), 6/8=no idea)\n * x: Rows to return (default: 20)\n * y: Columns to return (default: 10)\n * l: Title length (default: 4)\n * thumbnail_size: Size of thumbnail (0~6, default: 6) \n\n* `get_thread_images(id)` \n Get image links(src) from a thread. [Return: list]\n\n Params:\n * id: Thread ID (You can find it on the url) https://dec.2chan.net/55/res/{THREAD_ID}.htm\n\n* `download_images(id, directory=None, custom=False)` \n Download images form a thread. By default, images will be saved on your desktop in 'touhou_ura/images' (Creates if does not exist) \n\n Params:\n * id: Thread ID\n * directory: Directory you want to save (optional).\n * custom: (optional) \n\n Example: \n ```python\n import os\n from touhou_ura import ThUra\n\n th_ura = ThUra()\n directory = os.path.expanduser(\"~/Desktop/some_folder\")\n\n th_ura.download_images(id, directory)\n # Will be saved at ~Desktop/some_folder/touhou_ura/images/{id}\n\n th_ura.download_images(id, directory, True)\n # Will be saved at ~Desktop/some_folder\n ```\n* `download_archive(id, directory=None, custom=False)`\nDownload archive of a thread (html, css & images). By default, archives will be saved on your desktop in 'touhou_ura/archives' (Creates if does not exist) \n\n Params:\n * id: Thread ID\n * directory: Directory you want to save (optional).\n * custom: (optional) \n\n Example: \n ```python\n import os\n from touhou_ura import ThUra\n\n th_ura = ThUra()\n directory = os.path.expanduser(\"~/Desktop/some_folder\")\n\n th_ura.download_archive(id, directory)\n # Will be saved at ~Desktop/some_folder/touhou_ura/archives/{id}\n\n th_ura.download_archive(id, directory, True)\n # Will be saved at ~Desktop/some_folder\n ```\n\n#### More features coming soon\n\n## License\nMIT License\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/blackrose514/touhou-ura/releases", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/blackrose514/touhou-ura", "keywords": "touhou,futaba,4chan", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "touhou-ura", "package_url": "https://pypi.org/project/touhou-ura/", "platform": "", "project_url": "https://pypi.org/project/touhou-ura/", "project_urls": { "Download": "https://github.com/blackrose514/touhou-ura/releases", "Homepage": "https://github.com/blackrose514/touhou-ura" }, "release_url": "https://pypi.org/project/touhou-ura/0.0.1/", "requires_dist": [ "requests", "tqdm", "beautifulsoup4" ], "requires_python": "", "summary": "Python tool to get or/and download data from touhou-ura threads (futaba)", "version": "0.0.1" }, "last_serial": 5512390, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "d5a3d6b338d02f9c76fb6a3184ddd9af", "sha256": "e82fdeb63176061570786bab86b79961742da099447981098690667fa92f96bf" }, "downloads": -1, "filename": "touhou_ura-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d5a3d6b338d02f9c76fb6a3184ddd9af", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10003, "upload_time": "2019-07-10T14:23:45", "url": "https://files.pythonhosted.org/packages/de/ca/96ed36a36660a3818bd1380e01f22b51cd7f1653abf2e53331b02188e8b5/touhou_ura-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "87ba9becd9b530a4e7871b0b81d91bda", "sha256": "a6a925be8e8ea1fa4fa159bd8254e0d9f81ad38bab2d37dec3c3e4df0d5c1b58" }, "downloads": -1, "filename": "touhou-ura-0.0.1.tar.gz", "has_sig": false, "md5_digest": "87ba9becd9b530a4e7871b0b81d91bda", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8933, "upload_time": "2019-07-10T14:23:48", "url": "https://files.pythonhosted.org/packages/e5/03/5b76949fb90cf03a47ca3dc6afeae94817ea23f6d2d4754b4cf75b4c4e9d/touhou-ura-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d5a3d6b338d02f9c76fb6a3184ddd9af", "sha256": "e82fdeb63176061570786bab86b79961742da099447981098690667fa92f96bf" }, "downloads": -1, "filename": "touhou_ura-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d5a3d6b338d02f9c76fb6a3184ddd9af", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10003, "upload_time": "2019-07-10T14:23:45", "url": "https://files.pythonhosted.org/packages/de/ca/96ed36a36660a3818bd1380e01f22b51cd7f1653abf2e53331b02188e8b5/touhou_ura-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "87ba9becd9b530a4e7871b0b81d91bda", "sha256": "a6a925be8e8ea1fa4fa159bd8254e0d9f81ad38bab2d37dec3c3e4df0d5c1b58" }, "downloads": -1, "filename": "touhou-ura-0.0.1.tar.gz", "has_sig": false, "md5_digest": "87ba9becd9b530a4e7871b0b81d91bda", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8933, "upload_time": "2019-07-10T14:23:48", "url": "https://files.pythonhosted.org/packages/e5/03/5b76949fb90cf03a47ca3dc6afeae94817ea23f6d2d4754b4cf75b4c4e9d/touhou-ura-0.0.1.tar.gz" } ] }