{ "info": { "author": "Antonizoon Overtwater", "author_email": "antonizoon@bibanon.org", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "4chan Python Library\n====================\nThe Bibliotheca Anonoma's **complete Python Wrapper for the 4chan API.**\nUses requests, respects if-modified-since headers on updating threads.\nCaches thread objects. Fun stuff.\n\nAn absolute must if you want to interface with or scrape from 4chan,\nusing a Python script.\n\n`Hosted Documentation `_\n\n`Github Repository `_\n\nYou can install this library `straight from\nPyPi `_ with::\n\n pip install basc-py4chan\n\n\n**Getting Help**\n\nIf you want help, or you have some trouble using this library, our primary IRC channel\nis `#bibanon on irc.rizon.net `_. Simply head\nin there and talk to dan or antonizoon. Otherwise, you can put a issue on our `Github\nIssue Tracker `_ and we'll respond as soon as\nwe can!\n\n--------\n\nOriginally written by `Edgeworth `_, the library\nhas been adopted and extended by `Bibliotheca Anonoma `_.\n\n**Note:** If you're a developer that still uses Edgeworth's py-4chan, and don't\nwant to change the function names, Bibliotheca Anonoma maintains an `up-to-date,\nAPI-compatible version of py-4chan here. `_\n\nUsage\n-----\n\n.. code:: python\n\n import basc_py4chan\n b = basc_py4chan.Board('b')\n thread = b.get_thread(423491034)\n\n print(thread)\n\n for file in thread.files():\n print(file)\n \n # In a while...\n print(\"I fetched\", thread.update(), \"new replies.\")\n\nDocumentation is located `here `_.\n\nExtending this Library\n----------------------\n\nThere are a wealth of other imageboard APIs that have adopted a similar structure to the 4chan API (such as 8chan/vichan, or 420chan). FoolFuuka also has an API which differs significantly from them since it predates them, but it can be made to fit.\n\nSo instead of writing a whole new class from scratch, you could inherit and override BASC-py4chan to support them. This would also allow the BASC-Archiver to possibly make it work. Here's how:\n\n.. code:: python\n\n import basc_py4chan\n \n class URL (basc_py4chan.URL):\n # see BASC-py4chan's `url.py` for an example of how to set up\n # the URLs.\n def __init__(self, https=False):\n # Your API URL Subdomains\n DOMAIN = { }\n \n # Your API URL Templates\n TEMPLATE = { }\n \n # Your API Listings\n LISTING = { }\n \n # combine all dictionaries into self.URL dictionary\n self.URL = TEMPLATE\n self.URL.update({'domain': DOMAIN})\n self.URL.update({'listing': LISTING})\n \n class Board(basc_py4chan.Board):\n # add your own overrides here, or leave it alone\n pass\n \n class Thread(basc_py4chan.Threads):\n # add your own overrides here, or leave it alone\n pass\n\n class Post(basc_py4chan.Post):\n # add your own overrides here, or leave it alone\n pass\n\n # note that all classes must be in one file (we recommend\n # py?chan/__init__.py ), due to how python modules work\n\n\nFrom there, just override any methods in classes Board, Thread or Post as necessary. \n\nNotice that if your imageboard's API does not support a certain feature in the 4chan API, `you should have the function raise an AttributeError. `_\n\nLicense\n-------\n\n.. code:: text\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2004 Sam Hocevar \n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/bibanon/BASC-py4chan", "keywords": "4chan api", "license": " DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2004 Sam Hocevar \n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.\n\n", "maintainer": "", "maintainer_email": "", "name": "BASC-py4chan", "package_url": "https://pypi.org/project/BASC-py4chan/", "platform": "", "project_url": "https://pypi.org/project/BASC-py4chan/", "project_urls": { "Homepage": "http://github.com/bibanon/BASC-py4chan" }, "release_url": "https://pypi.org/project/BASC-py4chan/0.6.5/", "requires_dist": null, "requires_python": "", "summary": "Python 4chan API Wrapper. Improved version of Edgeworth's original py-4chan wrapper.", "version": "0.6.5" }, "last_serial": 4527041, "releases": { "0.3.2": [], "0.4.0": [ { "comment_text": "", "digests": { "md5": "35fc81da93c553cf7e5c15ae4588d63b", "sha256": "669efd5752e7f2bc8c6e25e24220c16657eb73d7684485bca74963547a836fac" }, "downloads": -1, "filename": "BASC-py4chan-0.4.0.tar.gz", "has_sig": false, "md5_digest": "35fc81da93c553cf7e5c15ae4588d63b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9093, "upload_time": "2014-11-17T02:22:13", "url": "https://files.pythonhosted.org/packages/7b/68/353876c31b084370a4cd9e97c3fe72f77589650c8f3f8c3fd564477afc3a/BASC-py4chan-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "f9cee4324192171ae96e79d0e99d6640", "sha256": "112e33fe19a0a680cb35f99c095623976e4fdce323ceb807070df9d7bb85f4ca" }, "downloads": -1, "filename": "BASC-py4chan-0.4.1.tar.gz", "has_sig": false, "md5_digest": "f9cee4324192171ae96e79d0e99d6640", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8782, "upload_time": "2014-11-17T22:13:15", "url": "https://files.pythonhosted.org/packages/fd/2e/641a3c1a53ed1b6fe24ce486ed078505eb0430c7c8a4ad3830f82048421b/BASC-py4chan-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "1470d29fdfb6f79b787c73adaf35d3db", "sha256": "f933ac52e3e68cf4db46dd68ac9baae1f01ee55f29ddd43a58d92edc523d90fc" }, "downloads": -1, "filename": "BASC-py4chan-0.4.2.tar.gz", "has_sig": false, "md5_digest": "1470d29fdfb6f79b787c73adaf35d3db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8808, "upload_time": "2014-11-17T23:00:28", "url": "https://files.pythonhosted.org/packages/1b/80/b639acf3a548d96e57fbba1b7845cfea0bbba23d1a9e7d6f5431f8c2a68f/BASC-py4chan-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "28101abf4faae27da89a2e29da381533", "sha256": "c18d74b8bb60568543d12e9812d94858a6748c66c4cea74090dc304359bcba41" }, "downloads": -1, "filename": "BASC-py4chan-0.4.3.tar.gz", "has_sig": false, "md5_digest": "28101abf4faae27da89a2e29da381533", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9571, "upload_time": "2015-05-21T02:19:37", "url": "https://files.pythonhosted.org/packages/3d/e9/393ae0c94ac1a7b5c45c7bd0f0a4c7586bb2260392b762f8edef203282d9/BASC-py4chan-0.4.3.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "f06ebc93e4577b71d5ef0ff479974697", "sha256": "63d005de88a9c1a369e032281e93f5034612ebbca10e7c0d54adec4e9de1e8eb" }, "downloads": -1, "filename": "BASC-py4chan-0.5.0.tar.gz", "has_sig": false, "md5_digest": "f06ebc93e4577b71d5ef0ff479974697", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21643, "upload_time": "2015-07-17T11:36:29", "url": "https://files.pythonhosted.org/packages/42/01/f1386ac4e4ca5adc3eab08ddcd7a1f134c178eeaf8eeee7522cc3b5900c4/BASC-py4chan-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "fa57d8a8d6cbc25d006ab82b25c140c5", "sha256": "3ff2370a3fbd045b5425da96c400f615e55a0a6fc332e174476d7dbf7692b3a5" }, "downloads": -1, "filename": "BASC-py4chan-0.5.1.tar.gz", "has_sig": false, "md5_digest": "fa57d8a8d6cbc25d006ab82b25c140c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10236, "upload_time": "2015-08-21T12:57:01", "url": "https://files.pythonhosted.org/packages/e1/28/0b54244c4087a2abc51bda0e9116f1ba2ffbf2ab4724c5adeed6a5aeceeb/BASC-py4chan-0.5.1.tar.gz" } ], "0.5.2": [ { "comment_text": "", "digests": { "md5": "da15528cfefe7af169ba36614b2c4d98", "sha256": "4abb0a90155a8cecfbde1580f3884194278e52277aceb5f7c46cae7b5c3efe8a" }, "downloads": -1, "filename": "BASC-py4chan-0.5.2.tar.gz", "has_sig": false, "md5_digest": "da15528cfefe7af169ba36614b2c4d98", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10347, "upload_time": "2015-08-21T13:00:00", "url": "https://files.pythonhosted.org/packages/d4/54/5882aeb5a98529a9c1bd0e51a3be388196da5a199561b2f375d5eeaf613c/BASC-py4chan-0.5.2.tar.gz" } ], "0.5.3": [ { "comment_text": "", "digests": { "md5": "9600801ad90999b6cecb574907e87ceb", "sha256": "29fa361873e29a698f7e7a6bfa6d498d918ce9eca2e7baa79ccb7894013eead3" }, "downloads": -1, "filename": "BASC-py4chan-0.5.3.tar.gz", "has_sig": false, "md5_digest": "9600801ad90999b6cecb574907e87ceb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10352, "upload_time": "2015-08-21T13:06:24", "url": "https://files.pythonhosted.org/packages/e0/8a/554055359c62a7e3913d6a33c88f3a43104cc1b8673a9557aa8bbf434e27/BASC-py4chan-0.5.3.tar.gz" } ], "0.5.4": [ { "comment_text": "", "digests": { "md5": "08dd7d05c0f7fca075a684fee843de4f", "sha256": "2780dfb454f6f638f2f40ea765f7f55edde3e66831807db13b5c9b10d0e9b40f" }, "downloads": -1, "filename": "BASC-py4chan-0.5.4.tar.gz", "has_sig": false, "md5_digest": "08dd7d05c0f7fca075a684fee843de4f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10361, "upload_time": "2015-08-21T13:09:08", "url": "https://files.pythonhosted.org/packages/25/7a/c0fbfac1fcf82f896bec9c7f45a89188f943b178f23d64a7277b0f506dd2/BASC-py4chan-0.5.4.tar.gz" } ], "0.5.5": [ { "comment_text": "", "digests": { "md5": "65e78a1a74fe63cada35e9456b2ae29f", "sha256": "f39337bd2fa5b2e33567863ae96ac39f5fab43b3d1c496547717fbb1b052ecd9" }, "downloads": -1, "filename": "BASC-py4chan-0.5.5.tar.gz", "has_sig": false, "md5_digest": "65e78a1a74fe63cada35e9456b2ae29f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10372, "upload_time": "2015-10-04T04:36:03", "url": "https://files.pythonhosted.org/packages/07/80/ff8b287838d14db84b9b77237005d9893a14a6dfb4a777c77efbd668413b/BASC-py4chan-0.5.5.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "d4c22522afce735c854293e85e4e553e", "sha256": "84bed6d8cd47663d6bd7f4490e937cd0df78984c50c7aa87291c5d9a82c686a9" }, "downloads": -1, "filename": "BASC-py4chan-0.6.0.tar.gz", "has_sig": false, "md5_digest": "d4c22522afce735c854293e85e4e553e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11158, "upload_time": "2015-11-12T19:32:04", "url": "https://files.pythonhosted.org/packages/25/2e/7fc3d13d6913ffbcfeb069b6c8e557a954aad1986c4287700f8f4428f633/BASC-py4chan-0.6.0.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "e239db0815be6a79a6d1ab7116ebc1da", "sha256": "8803db6a8ed29d8bd571a2651c0a60a7e85b556c6c04d77a0fa65cf08222867d" }, "downloads": -1, "filename": "BASC-py4chan-0.6.1.tar.gz", "has_sig": false, "md5_digest": "e239db0815be6a79a6d1ab7116ebc1da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12825, "upload_time": "2016-07-22T02:49:57", "url": "https://files.pythonhosted.org/packages/a4/5e/6f0e36fd868ae712980fe88df0371e8877983fbc27254c795f4d70c5e1c8/BASC-py4chan-0.6.1.tar.gz" } ], "0.6.2": [ { "comment_text": "", "digests": { "md5": "0a89fe1a489fafa721e32e979bbfff9f", "sha256": "ada0ec753690523e4062f623bd132c8f31eee8bedfe8cb1e73bfa17247edc9f5" }, "downloads": -1, "filename": "BASC-py4chan-0.6.2.tar.gz", "has_sig": false, "md5_digest": "0a89fe1a489fafa721e32e979bbfff9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12860, "upload_time": "2016-07-27T19:43:44", "url": "https://files.pythonhosted.org/packages/82/85/4ffea584ef6f531a9e8514c1fde39d9f44d55e079a699eafa96e5d2beb6b/BASC-py4chan-0.6.2.tar.gz" } ], "0.6.3": [ { "comment_text": "", "digests": { "md5": "690c5f42af346d79c60178a5370ed9ae", "sha256": "568ead77e22593d24c52d73ff13edf712f8f4766456a89547a97f2e553abeed1" }, "downloads": -1, "filename": "BASC-py4chan-0.6.3.tar.gz", "has_sig": false, "md5_digest": "690c5f42af346d79c60178a5370ed9ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12276, "upload_time": "2017-02-07T03:47:02", "url": "https://files.pythonhosted.org/packages/88/f8/264227eb69a1c3ef1c6dd263782cbd98f08dfd0ce834246d0d3091b488b1/BASC-py4chan-0.6.3.tar.gz" } ], "0.6.4": [ { "comment_text": "", "digests": { "md5": "8c54b745fc95ca20c29e14e0e626e4ff", "sha256": "f6e3990e26bd6b9f771a8fcead0aad8e050bc14878c733f65ca5d69a4787c092" }, "downloads": -1, "filename": "BASC-py4chan-0.6.4.tar.gz", "has_sig": false, "md5_digest": "8c54b745fc95ca20c29e14e0e626e4ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12385, "upload_time": "2017-12-01T01:19:03", "url": "https://files.pythonhosted.org/packages/2c/b8/7b0952499e96f5da274f951105c05aaa60cb8114814f93d6450efd513ad3/BASC-py4chan-0.6.4.tar.gz" } ], "0.6.5": [ { "comment_text": "", "digests": { "md5": "7fc50735407f672cabdb9a160b34bb06", "sha256": "481769eb69825e1645135857aa112c44675ba419cb1c6ec308634130cbcb700e" }, "downloads": -1, "filename": "BASC-py4chan-0.6.5.tar.gz", "has_sig": false, "md5_digest": "7fc50735407f672cabdb9a160b34bb06", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13406, "upload_time": "2018-11-25T21:12:47", "url": "https://files.pythonhosted.org/packages/90/72/17092df1b71891b38d067621a0643ba24b574eb716f3f2710b092eba003d/BASC-py4chan-0.6.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7fc50735407f672cabdb9a160b34bb06", "sha256": "481769eb69825e1645135857aa112c44675ba419cb1c6ec308634130cbcb700e" }, "downloads": -1, "filename": "BASC-py4chan-0.6.5.tar.gz", "has_sig": false, "md5_digest": "7fc50735407f672cabdb9a160b34bb06", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13406, "upload_time": "2018-11-25T21:12:47", "url": "https://files.pythonhosted.org/packages/90/72/17092df1b71891b38d067621a0643ba24b574eb716f3f2710b092eba003d/BASC-py4chan-0.6.5.tar.gz" } ] }