{ "info": { "author": "Stephen McCalman", "author_email": "stephen.mccalman@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 3" ], "description": "# soupcan\n\nsoupcan is a Python library for creating interface objects of webpage content. Using [Requests](http://docs.python-requests.org/en/master/) and [BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/bs4/doc/index.html?highlight=setup#beautiful-soup-documentation) under the hood, this library make it easy to design modular interfaces for selected HTML content, or groups of content, found on a webpage. Anyone needing a way to build interfaces to display and analyse web content are welcome to use this library. The ideal for use in a Jupyter notebook. \n\n## Installation\n\n\n\n## Basic Usage\n\nRetrieve a webpage:\n~~~\nimport soupcan\npage = soupcan.BasePage.from_url({URL})\nprint(page.title)\nprint(page.url)\n~~~\n\nAccess a table (content) from a page using `soupcan`'s (pre-designed) `Table` class:\n~~~\nfrom soupcan.common import Table\ntable = page.get(Table)\nprint(table.body.rows[0])\n~~~\n\nCreate your own custom interface object:\n~~~\nclass MyTableHeader(soupcan.Interface): \n\t_soup_kwargs = {\"name\": 'thead'}\n\nclass MyTableBody(soupcan.Interface): \n\t_soup_kwargs = {\"name\": 'tbody'}\n\nclass MyTable(soupcan.Interface): \n\t_soup_kwargs = {\"name\": 'table'}\n\n @property\n def header(self):\n \tself.get(MyTableHeader)\n\n @property\n def body(self):\n \tself.get(MyTableBody)\n\nmytable = page.get(MyTable)\n\nprint(mytable.header) #\nprint(mytable.body) #\n~~~ \n\n## Disclamer\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/stephenmccalman/soupcan", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "soupcan", "package_url": "https://pypi.org/project/soupcan/", "platform": "", "project_url": "https://pypi.org/project/soupcan/", "project_urls": { "Homepage": "https://github.com/stephenmccalman/soupcan" }, "release_url": "https://pypi.org/project/soupcan/0.0.1a1/", "requires_dist": [ "bs4", "requests" ], "requires_python": "", "summary": "a Python library for creating custom objects of webpage content", "version": "0.0.1a1" }, "last_serial": 4440284, "releases": { "0.0.1a1": [ { "comment_text": "", "digests": { "md5": "5d261b4a88474ad4218307375e91feb4", "sha256": "85ed9659bd01a18744332ad1f7cc92d5b190ed6b6c73dccd8a0320bf4eb1a92d" }, "downloads": -1, "filename": "soupcan-0.0.1a1-py3-none-any.whl", "has_sig": false, "md5_digest": "5d261b4a88474ad4218307375e91feb4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7296, "upload_time": "2018-11-01T11:22:37", "url": "https://files.pythonhosted.org/packages/7a/5d/ddc0e9871007c0c0df620fff2b49d6ad44344103fbe2e6bf0b584b024299/soupcan-0.0.1a1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b3115a531d163e6bc52bb87a530a4509", "sha256": "91a7ded6190b5944011c651ccd4d5954f927ecc0c496069e7c0b7c3000339fb2" }, "downloads": -1, "filename": "soupcan-0.0.1a1.tar.gz", "has_sig": false, "md5_digest": "b3115a531d163e6bc52bb87a530a4509", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4523, "upload_time": "2018-11-01T11:22:39", "url": "https://files.pythonhosted.org/packages/af/45/9ee3cfb15e6afdc1b72f2ac0fc2473bfd214b84826d84efa535ebd2d1dfc/soupcan-0.0.1a1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5d261b4a88474ad4218307375e91feb4", "sha256": "85ed9659bd01a18744332ad1f7cc92d5b190ed6b6c73dccd8a0320bf4eb1a92d" }, "downloads": -1, "filename": "soupcan-0.0.1a1-py3-none-any.whl", "has_sig": false, "md5_digest": "5d261b4a88474ad4218307375e91feb4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7296, "upload_time": "2018-11-01T11:22:37", "url": "https://files.pythonhosted.org/packages/7a/5d/ddc0e9871007c0c0df620fff2b49d6ad44344103fbe2e6bf0b584b024299/soupcan-0.0.1a1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b3115a531d163e6bc52bb87a530a4509", "sha256": "91a7ded6190b5944011c651ccd4d5954f927ecc0c496069e7c0b7c3000339fb2" }, "downloads": -1, "filename": "soupcan-0.0.1a1.tar.gz", "has_sig": false, "md5_digest": "b3115a531d163e6bc52bb87a530a4509", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4523, "upload_time": "2018-11-01T11:22:39", "url": "https://files.pythonhosted.org/packages/af/45/9ee3cfb15e6afdc1b72f2ac0fc2473bfd214b84826d84efa535ebd2d1dfc/soupcan-0.0.1a1.tar.gz" } ] }