{ "info": { "author": "Pol MP", "author_email": "pol.moreno30@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# WebNotifier\n\n![PyPI](https://img.shields.io/pypi/v/webnotifier.svg)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/webnotifier.svg)\n![PyPI - Status](https://img.shields.io/pypi/status/webnotifier.svg)\n![PyPI - License](https://img.shields.io/pypi/l/webnotifier.svg)\n\nWebnotifier is a simple package for notifying any webpage change.\n\n## Requirements\n\nThis package needs:\n\n- Requests >= 2.21.0\n- lxml >= 4.3.3\n\n## Installation\n\nTo install Webnotifier, use pip\n\n```bash\n$ pip install webnotifier\n```\n\n## Usage\n\nInstanciate the WebNotifier class and pass an url array and two callbacks. Also, you can pass the interval time (in seconds).\n\n```python\nfrom webnotifier import WebNotifier\n\nmy_urls = [{'name':'Google','href':'https://www.google.com'}, {'name':'Medium','href':'https://medium.com'},{'name':'Localhost','href':'http://127.0.0.1:3000'}]\n\ndef onError(err):\n \"\"\"\n URL and Name params can be accessed within err.name && err.url\n \"\"\"\n print(\"There was an error with {} on {}\".format(err.name, err.url))\n\ndef onNewChange(url,name):\n print(\"Webpage {} on {} changed!\".format(name,url))\n\ninterval = 60 #Check if webpage changes every 60 seconds\n\ncustom_webnotifier = WebNotifier(my_urls,onNewChange,onError,interval)\ncustom_webnotifier.start()\n```\n\nWhen a webpage changes, the onNewChange callback will be triggered. Otherwise, if there's any error in getting the URL, onError callback will be executed.\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/polmp/webnotifier", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "webnotifier", "package_url": "https://pypi.org/project/webnotifier/", "platform": "", "project_url": "https://pypi.org/project/webnotifier/", "project_urls": { "Homepage": "https://github.com/polmp/webnotifier" }, "release_url": "https://pypi.org/project/webnotifier/0.1.1/", "requires_dist": [ "requests (>=2.21.0)", "lxml (>=4.3.3)" ], "requires_python": "", "summary": "A package for notifying any webpage change", "version": "0.1.1" }, "last_serial": 5138329, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "49c9922655a57f02d0b373854e4b762e", "sha256": "ca9f22005e6a6c5a7a3b56a22faf76fdd76ab826ef971d77075c7ae17e1457f2" }, "downloads": -1, "filename": "webnotifier-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "49c9922655a57f02d0b373854e4b762e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3410, "upload_time": "2019-04-13T14:53:01", "url": "https://files.pythonhosted.org/packages/23/0f/bc7cdefd9f361ddcd18fe47e2f0c3baf12000842c7c45403d1ed819cd03d/webnotifier-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b4e21170f8aa264bad90e2dcaf7df4a6", "sha256": "a20fb5db1642111f0d8bdcc51c1985d99adf6b211eea03f74fa640b8fb5d1e84" }, "downloads": -1, "filename": "webnotifier-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b4e21170f8aa264bad90e2dcaf7df4a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2872, "upload_time": "2019-04-13T14:53:02", "url": "https://files.pythonhosted.org/packages/d4/5d/19b869027c13ee3c45b75abbf1b6ece14b17abe4f2c502ce3cb928e6a3a3/webnotifier-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "f2ad11537a34cc9c5f6c69d7ec3c4bc2", "sha256": "f84897bfe71012e36864f874dda0a416011389ed2450b3d1ef8151a8a3c74cf8" }, "downloads": -1, "filename": "webnotifier-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f2ad11537a34cc9c5f6c69d7ec3c4bc2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4229, "upload_time": "2019-04-13T14:56:31", "url": "https://files.pythonhosted.org/packages/7b/d2/4d77b30dfe00391260914af7e36dc16a4184d3328769e2fd7f8440f0c365/webnotifier-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "135879ad0e34d97bfb60899d288fcaa2", "sha256": "a564f200ccc6d4646aea677fde434717cb5fa231d96d033ab0283b7dcbaf678c" }, "downloads": -1, "filename": "webnotifier-0.1.1.tar.gz", "has_sig": false, "md5_digest": "135879ad0e34d97bfb60899d288fcaa2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2876, "upload_time": "2019-04-13T14:56:32", "url": "https://files.pythonhosted.org/packages/04/fe/49f9e1b07fba5696fae392ead762c185bc4fb36d9daa7f9165b5a599b04e/webnotifier-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f2ad11537a34cc9c5f6c69d7ec3c4bc2", "sha256": "f84897bfe71012e36864f874dda0a416011389ed2450b3d1ef8151a8a3c74cf8" }, "downloads": -1, "filename": "webnotifier-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f2ad11537a34cc9c5f6c69d7ec3c4bc2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4229, "upload_time": "2019-04-13T14:56:31", "url": "https://files.pythonhosted.org/packages/7b/d2/4d77b30dfe00391260914af7e36dc16a4184d3328769e2fd7f8440f0c365/webnotifier-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "135879ad0e34d97bfb60899d288fcaa2", "sha256": "a564f200ccc6d4646aea677fde434717cb5fa231d96d033ab0283b7dcbaf678c" }, "downloads": -1, "filename": "webnotifier-0.1.1.tar.gz", "has_sig": false, "md5_digest": "135879ad0e34d97bfb60899d288fcaa2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2876, "upload_time": "2019-04-13T14:56:32", "url": "https://files.pythonhosted.org/packages/04/fe/49f9e1b07fba5696fae392ead762c185bc4fb36d9daa7f9165b5a599b04e/webnotifier-0.1.1.tar.gz" } ] }