{ "info": { "author": "Liam Corbett", "author_email": "", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7" ], "description": "====================\nADP website scraping\n====================\nA Selenium-based python script for logging into ADP Resource and downloading reports.\n\n\nUsage\n=====\n\nInstallation\n------------\nWith Python 3.6 or greater installed, in a command prompt: enter ``pip install adp-webscrape``. You'll also need a recent edition of Firefox and its respective GeckoDriver_. The GeckoDriver must be added to PATH, or to the root folder of the project.\n\n.. _GeckoDriver: https://github.com/mozilla/geckodriver/releases\n\nCode\n----\nUse the following code, replacing my_username, my_password, my_download_path, and my_isi_client_id with relevant information.\n\n- ``my_username``: Your ADP Resource username\n- ``my_password``: Your ADP Resource password\n- ``my_download_path``: (optional) The path that Selenium's browser will download reports to (e.g ``C:\\adp-reports``). Ommiting defaults to the user's download folder.\n- ``my_isi_client_id``: This can be found at the end of the url for any ezLaborManager page. Most likely, it's going to be your company name (probably spaced out by hyphens if the name is multiple words).\n- ``my_report_index``: On the ezLaborManager \"My Reports\" page, this will be the index of the report you want to download (with the first report starting at index 0) https://i.imgur.com/Tg7kPQV.png\n- ``my_file_prefix``: (optional) If you'd like to prefix the name of your files with some word so as to not mix report names, you may do so here.\n\n.. code-block:: python\n\n import atexit\n from adpwebscrape import ADPResource\n\n\n resource = ADPResource('my_username', 'my_password',\n isi_client_id='my_isi_client_id',\n download_path=r'my_download_path') \n \n resource.download_my_report(my_report_index, prefix='my_file_prefix') #returns Filename\n\n atexit.register(resource.quit)\n\nOther\n=====\n\nWhy no official API?\n--------------------\nThere isn't one. ADP Marketplace has an API, though it is very separate from the reports I've attempted to generate here.\n\nWhy Selenium and not regular schmegular requests?\n-------------------------------------------------\nRequests to ADP Resource require hidden fields whose contents seem like a pain to generate programatically. Selenium was chosen because it handles all of that at the cost of a little performance. Please let me know if you find a better way to do this.\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "MIT", "maintainer": "Liam Corbett", "maintainer_email": "", "name": "adp-webscrape", "package_url": "https://pypi.org/project/adp-webscrape/", "platform": "", "project_url": "https://pypi.org/project/adp-webscrape/", "project_urls": null, "release_url": "https://pypi.org/project/adp-webscrape/0.1.0/", "requires_dist": [ "selenium (>=3.141,<4.0)" ], "requires_python": ">=3.7,<4.0", "summary": "Log into and download reports from ADP Resource and ezLaborManager.", "version": "0.1.0" }, "last_serial": 4974146, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e8d924ef282a4fadbbf44951f16fbba8", "sha256": "2fba881ecd4a358e2b61f8879a577c0743b4f1c59b8f8a9d517cdbf8020b8432" }, "downloads": -1, "filename": "adp_webscrape-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e8d924ef282a4fadbbf44951f16fbba8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7,<4.0", "size": 9879, "upload_time": "2019-03-22T19:43:21", "url": "https://files.pythonhosted.org/packages/c6/fa/4f8b4a41afb46bed9b582d158b68cd16272fb2039cc9de935aa5e9ec905c/adp_webscrape-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4a58dbeec2da9a6393da4d12c9d2ff73", "sha256": "4d2307b50b254594a7833442641559d6d63730e37f3c7e06e70c9377119373df" }, "downloads": -1, "filename": "adp-webscrape-0.1.0.tar.gz", "has_sig": false, "md5_digest": "4a58dbeec2da9a6393da4d12c9d2ff73", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7,<4.0", "size": 4862, "upload_time": "2019-03-22T19:43:19", "url": "https://files.pythonhosted.org/packages/1f/40/7f4e717cd629d9e7799a76a498fd042eef1fa205bb63369fb0ff02fbf555/adp-webscrape-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e8d924ef282a4fadbbf44951f16fbba8", "sha256": "2fba881ecd4a358e2b61f8879a577c0743b4f1c59b8f8a9d517cdbf8020b8432" }, "downloads": -1, "filename": "adp_webscrape-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e8d924ef282a4fadbbf44951f16fbba8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7,<4.0", "size": 9879, "upload_time": "2019-03-22T19:43:21", "url": "https://files.pythonhosted.org/packages/c6/fa/4f8b4a41afb46bed9b582d158b68cd16272fb2039cc9de935aa5e9ec905c/adp_webscrape-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4a58dbeec2da9a6393da4d12c9d2ff73", "sha256": "4d2307b50b254594a7833442641559d6d63730e37f3c7e06e70c9377119373df" }, "downloads": -1, "filename": "adp-webscrape-0.1.0.tar.gz", "has_sig": false, "md5_digest": "4a58dbeec2da9a6393da4d12c9d2ff73", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7,<4.0", "size": 4862, "upload_time": "2019-03-22T19:43:19", "url": "https://files.pythonhosted.org/packages/1f/40/7f4e717cd629d9e7799a76a498fd042eef1fa205bb63369fb0ff02fbf555/adp-webscrape-0.1.0.tar.gz" } ] }