{ "info": { "author": "Radomirs Cirskis", "author_email": "nad2000@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "Online W3C Validator\n====================\n\nPure Python command line for HTML validation using W3C online validator.\nIt could be very handy for using it in a CI pipline.\n\nInstallation\n------------\n\n.. code:: bash\n\n pip install -U Online-W3C-Validator\n\nHow to use\n----------\n\nYou can user the CLI command:\n\n.. code:: bash\n\n w3c_validator http://www.google.com some_file.html\n\nExample output:\n\n::\n\n INFO:w3c_validator.validator:Files to validate:\n http://www.google.com\n INFO:w3c_validator.validator:Number of files: 1\n INFO:w3c_validator.validator:validating: http://www.google.com ...\n error: line 2: CSS: \u201cdisplay\u201d: \u201cinline-box\u201d is not a \u201cdisplay\u201d value in \u201cinline-box\u201d in \u201c.ds\u201d.\n error: line 2: The \u201cbgcolor\u201d attribute on the \u201cbody\u201d element is obsolete. Use CSS instead.\n error: line 5: Element \u201cnobr\u201d not allowed as child of element \u201cdiv\u201d in this context. (Suppressing further errors from this subtree.)\n error: line 5: Attribute \u201cwidth\u201d not allowed on element \u201cdiv\u201d at this point.\n error: line 5: Element \u201cnobr\u201d not allowed as child of element \u201cdiv\u201d in this context. (Suppressing further errors from this subtree.)\n error: line 5: The \u201ccenter\u201d element is obsolete. Use CSS instead.\n error: line 5: The \u201cclear\u201d attribute on the \u201cbr\u201d element is obsolete. Use CSS instead.\n\nOr you can use the fuction **validdate** provied by the package, that\nthakes either HTML file name or URL as a single parameter an returns\nJSON object with the validation output.\n\n.. code:: py\n\n from w3c_validator import validate\n\n messages = validate(\"http://www.google.com\")[\"messages\"]\n for m in messages:\n print(\"Type: %(type)s, Line: %(lastLine)d, Description: %(message)s\" % m)\n\nExample output:\n\n::\n\n Type: error, Line: 2, Description: CSS: \u201cdisplay\u201d: \u201cinline-box\u201d is not a \u201cdisplay\u201d value in \u201cinline-box\u201d in \u201c.ds\u201d.\n Type: error, Line: 2, Description: The \u201cbgcolor\u201d attribute on the \u201cbody\u201d element is obsolete. Use CSS instead.\n Type: error, Line: 5, Description: Element \u201cnobr\u201d not allowed as child of element \u201cdiv\u201d in this context. (Suppressing further errors from this subtree.)\n Type: error, Line: 5, Description: Attribute \u201cwidth\u201d not allowed on element \u201cdiv\u201d at this point.\n Type: error, Line: 5, Description: Element \u201cnobr\u201d not allowed as child of element \u201cdiv\u201d in this context. (Suppressing further errors from this subtree.)\n Type: error, Line: 5, Description: The \u201ccenter\u201d element is obsolete. Use CSS instead.\n Type: error, Line: 5, Description: The \u201cclear\u201d attribute on the \u201cbr\u201d element is obsolete. Use CSS instead.\n Type: error, Line: 5, Description: The \u201calign\u201d attribute on the \u201cdiv\u201d element is obsolete. Use CSS instead.\n Type: error, Line: 5, Description: Attribute \u201cnowrap\u201d not allowed on element \u201cdiv\u201d at this point.\n ...\n\nContact\n-------\n\nFor bugs please use `GitHub issues`_. For other matters feel free to\ncontact me at nad2000@gmail.com.\n\n.. _GitHub issues: https://github.com/RonenNess/html_validator/issues\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/nad2000/W3C-Validator", "keywords": "html validator\nhtml\nvalidator\nchecker\nhtml5\nw3", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Online-W3C-Validator", "package_url": "https://pypi.org/project/Online-W3C-Validator/", "platform": "", "project_url": "https://pypi.org/project/Online-W3C-Validator/", "project_urls": { "Homepage": "https://github.com/nad2000/W3C-Validator" }, "release_url": "https://pypi.org/project/Online-W3C-Validator/0.3.11/", "requires_dist": null, "requires_python": "", "summary": "", "version": "0.3.11" }, "last_serial": 3910926, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "12eeb946244b4cee2acfec1b8fc10188", "sha256": "03a9987df3d4be61a0cb895d16f107843236f883258230416b403bb1a762ef47" }, "downloads": -1, "filename": "Online-W3C-Validator-0.1.0.tar.gz", "has_sig": false, "md5_digest": "12eeb946244b4cee2acfec1b8fc10188", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2863, "upload_time": "2018-01-09T07:50:09", "url": "https://files.pythonhosted.org/packages/0a/0d/ea88dd37b2c72f7b84faaee3fb82fd5e496741847f18c4e97c1a8dd833c3/Online-W3C-Validator-0.1.0.tar.gz" } ], "0.1.2a0": [ { "comment_text": "", "digests": { "md5": "8fffa7bbfc8937a7ef75547959aed0d8", "sha256": "bf61bee0ad8a5ca0badebfdef1dc0e3329d8a78d82d0c2e3488e8a417e1a7134" }, "downloads": -1, "filename": "Online-W3C-Validator-0.1.2a0.tar.gz", "has_sig": false, "md5_digest": "8fffa7bbfc8937a7ef75547959aed0d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2911, "upload_time": "2018-01-10T02:00:54", "url": "https://files.pythonhosted.org/packages/b4/5a/7a346d421d5ecb920780e8cddb3d98c0283d8ae53c4fc07b0d81edf57030/Online-W3C-Validator-0.1.2a0.tar.gz" } ], "0.2a0": [ { "comment_text": "", "digests": { "md5": "4cb4233cca482245faca0784c0d8351b", "sha256": "6953db86c2118d062d1372c07ec5163a380ad23990617009455c1bfc3367ef74" }, "downloads": -1, "filename": "Online-W3C-Validator-0.2a0.tar.gz", "has_sig": false, "md5_digest": "4cb4233cca482245faca0784c0d8351b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2914, "upload_time": "2018-01-10T02:32:52", "url": "https://files.pythonhosted.org/packages/48/1d/56c7c2d602df2582f9c1ef5cc9aa8314f909575fc2501604cfad28cf99f3/Online-W3C-Validator-0.2a0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "cf9ce1cb6d97714bf6974a5a2930d5c7", "sha256": "cf34fa19ac2226201a800e756ef2d9d99e19f71e7f93d1fc3dedfbe12daf9b4f" }, "downloads": -1, "filename": "Online-W3C-Validator-0.3.0.tar.gz", "has_sig": false, "md5_digest": "cf9ce1cb6d97714bf6974a5a2930d5c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3831, "upload_time": "2018-01-11T00:56:23", "url": "https://files.pythonhosted.org/packages/03/84/20f69f896b28eacbd4e86acd447e8cc83273b3a22fad4aadfacc973f0659/Online-W3C-Validator-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "07fe23bb900518c8bcc9561a2ef12ecb", "sha256": "f7b55460942f80155103ebd7139f236452dd5d956b5d82ede86fb6c6dd7f8178" }, "downloads": -1, "filename": "Online-W3C-Validator-0.3.1.tar.gz", "has_sig": false, "md5_digest": "07fe23bb900518c8bcc9561a2ef12ecb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3841, "upload_time": "2018-01-11T07:45:07", "url": "https://files.pythonhosted.org/packages/7a/5d/e6db63a952d69296de4373ae4fe3d7faaafad35a320a063b7578aa8c1f9d/Online-W3C-Validator-0.3.1.tar.gz" } ], "0.3.11": [ { "comment_text": "", "digests": { "md5": "bf11e86a48fa9c333bf1b371852d671c", "sha256": "68defd173435fb4d21d03e46e1bc967a7af7b42e72fb949b31d4a77da5d50f10" }, "downloads": -1, "filename": "Online-W3C-Validator-0.3.11.tar.gz", "has_sig": false, "md5_digest": "bf11e86a48fa9c333bf1b371852d671c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4992, "upload_time": "2018-05-29T23:51:20", "url": "https://files.pythonhosted.org/packages/e0/fd/47252f627d60f8049c22f892bf53e6f39018664bf54a1798a9d4f1b7e218/Online-W3C-Validator-0.3.11.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "8d2848aaa8330053a5d231f4abb47055", "sha256": "29f3feeaa06fdd599f8c9e5db7491c46af8d5856e91b8f8305fa7f536f43dc84" }, "downloads": -1, "filename": "Online-W3C-Validator-0.3.2.tar.gz", "has_sig": false, "md5_digest": "8d2848aaa8330053a5d231f4abb47055", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3844, "upload_time": "2018-01-16T05:29:56", "url": "https://files.pythonhosted.org/packages/b8/af/6930057a07b8a78fe0d1541fe38fbeeb5c70456712bad7b90313072f0549/Online-W3C-Validator-0.3.2.tar.gz" } ], "0.3.5.dev1": [ { "comment_text": "", "digests": { "md5": "14e35177be2a186f371c8ff6313c8265", "sha256": "ecc2908053ade6dbde92549f6d93e05937717d6bdd0790bff7cdb84aab39a62a" }, "downloads": -1, "filename": "Online-W3C-Validator-0.3.5.dev1.tar.gz", "has_sig": false, "md5_digest": "14e35177be2a186f371c8ff6313c8265", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4939, "upload_time": "2018-05-29T05:34:34", "url": "https://files.pythonhosted.org/packages/f1/29/eae71df5297f6a9a6de052d6088dab1d4beabbeb619b19a22a197328c2a3/Online-W3C-Validator-0.3.5.dev1.tar.gz" } ], "0.3.6": [ { "comment_text": "", "digests": { "md5": "6119a2fb9cc8589837a53e6c44ce6887", "sha256": "e2f5d4253753dbb62586984c3ba3f6f403d0c0ac98b7b885733bc724312ddcb8" }, "downloads": -1, "filename": "Online-W3C-Validator-0.3.6.tar.gz", "has_sig": false, "md5_digest": "6119a2fb9cc8589837a53e6c44ce6887", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4934, "upload_time": "2018-05-29T05:48:44", "url": "https://files.pythonhosted.org/packages/1e/8b/0da8460ab0867e316b3544d9cf4484fd39c2b7d8d95fa551127745e4e8f6/Online-W3C-Validator-0.3.6.tar.gz" } ], "0.3.7": [ { "comment_text": "", "digests": { "md5": "2647fbddedc0434aee1f3f8ef7be0ba5", "sha256": "e055cb8875db4143090db523651705079a8292b3efe1e0ebf7334b51a34397f3" }, "downloads": -1, "filename": "Online-W3C-Validator-0.3.7.tar.gz", "has_sig": false, "md5_digest": "2647fbddedc0434aee1f3f8ef7be0ba5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4934, "upload_time": "2018-05-29T05:51:40", "url": "https://files.pythonhosted.org/packages/dc/34/663264a95ea4d7dd11fa9793fe18c8c1128949393fa2d90b55f7c18ba83c/Online-W3C-Validator-0.3.7.tar.gz" } ], "0.3.9": [ { "comment_text": "", "digests": { "md5": "5948a4d0118a379752bbee87fe435a33", "sha256": "6ff133775bf44e0bd1f64ec3445b3b52de1b8425237734176444ea2883f6d319" }, "downloads": -1, "filename": "Online-W3C-Validator-0.3.9.tar.gz", "has_sig": false, "md5_digest": "5948a4d0118a379752bbee87fe435a33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4986, "upload_time": "2018-05-29T06:09:21", "url": "https://files.pythonhosted.org/packages/7c/07/adbb235fc1b1e5263b444294576ec6be46962b44e50d7a922b142806274f/Online-W3C-Validator-0.3.9.tar.gz" } ], "0.3a0": [ { "comment_text": "", "digests": { "md5": "094cb0afe8838105f33be6bbfe7b2960", "sha256": "c429e7d3ac22f1d191c5bc8c115b2452545fa8156125b79132f226c65a83730d" }, "downloads": -1, "filename": "Online-W3C-Validator-0.3a0.tar.gz", "has_sig": false, "md5_digest": "094cb0afe8838105f33be6bbfe7b2960", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3831, "upload_time": "2018-01-11T00:55:13", "url": "https://files.pythonhosted.org/packages/48/98/d69cba72d123fa8d8c9eb9bd3caa0a0e7ad5e60efabed871cf0130eda17a/Online-W3C-Validator-0.3a0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bf11e86a48fa9c333bf1b371852d671c", "sha256": "68defd173435fb4d21d03e46e1bc967a7af7b42e72fb949b31d4a77da5d50f10" }, "downloads": -1, "filename": "Online-W3C-Validator-0.3.11.tar.gz", "has_sig": false, "md5_digest": "bf11e86a48fa9c333bf1b371852d671c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4992, "upload_time": "2018-05-29T23:51:20", "url": "https://files.pythonhosted.org/packages/e0/fd/47252f627d60f8049c22f892bf53e6f39018664bf54a1798a9d4f1b7e218/Online-W3C-Validator-0.3.11.tar.gz" } ] }