selenium-to-pdf


Nameselenium-to-pdf JSON
Version 0.3.0 PyPI version JSON
download
home_pagehttps://github.com/mkbabb/selenium-to-pdf
SummaryGiven an HTML document, converts thereupon to a PDF using Selenium's DevTools.
upload_time2023-05-15 15:24:09
maintainer
docs_urlNone
authorMike Babb
requires_python>=3.10,<4.0
licenseMIT
keywords selenium-to-pdf html pdf
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # selenium-to-pdf

Given an HTML document, converts thereupon to a PDF using Selenium's DevTools.

Requires selenium and ChromeDriver. For more information on how to install ChromeDriver,
see [here](https://sites.google.com/a/chromium.org/chromedriver/getting-started).

## Example

```python
from selenium_to_pdf import convert

url = "https://www.fulltextarchive.com/book/dante-s-inferno/#CANTO-1-2"

pdf_data = convert.html_to_pdf(url=url)

with open("dante.pdf", "wb") as f:
    f.write(pdf_data)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mkbabb/selenium-to-pdf",
    "name": "selenium-to-pdf",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10,<4.0",
    "maintainer_email": "",
    "keywords": "selenium-to-pdf,html,pdf",
    "author": "Mike Babb",
    "author_email": "mike7400@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/fe/62/4265e49ba792f2920d3e001f397516b48b07feb50213f1411154ecf43e12/selenium_to_pdf-0.3.0.tar.gz",
    "platform": null,
    "description": "# selenium-to-pdf\n\nGiven an HTML document, converts thereupon to a PDF using Selenium's DevTools.\n\nRequires selenium and ChromeDriver. For more information on how to install ChromeDriver,\nsee [here](https://sites.google.com/a/chromium.org/chromedriver/getting-started).\n\n## Example\n\n```python\nfrom selenium_to_pdf import convert\n\nurl = \"https://www.fulltextarchive.com/book/dante-s-inferno/#CANTO-1-2\"\n\npdf_data = convert.html_to_pdf(url=url)\n\nwith open(\"dante.pdf\", \"wb\") as f:\n    f.write(pdf_data)\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Given an HTML document, converts thereupon to a PDF using Selenium's DevTools.",
    "version": "0.3.0",
    "project_urls": {
        "Homepage": "https://github.com/mkbabb/selenium-to-pdf",
        "Repository": "https://github.com/mkbabb/selenium-to-pdf"
    },
    "split_keywords": [
        "selenium-to-pdf",
        "html",
        "pdf"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "761bdb8649d4381d86f8fda86658170d3cfee3c00afe80b929c4b458bab3a9a9",
                "md5": "2846016fae953aca60ca8b4cfd482b4f",
                "sha256": "ff27e78627326418ec0a173b6cd8bfbc2e4a68aa28e2a0ad578ebf4a16db355c"
            },
            "downloads": -1,
            "filename": "selenium_to_pdf-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2846016fae953aca60ca8b4cfd482b4f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10,<4.0",
            "size": 3354,
            "upload_time": "2023-05-15T15:24:07",
            "upload_time_iso_8601": "2023-05-15T15:24:07.799596Z",
            "url": "https://files.pythonhosted.org/packages/76/1b/db8649d4381d86f8fda86658170d3cfee3c00afe80b929c4b458bab3a9a9/selenium_to_pdf-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fe624265e49ba792f2920d3e001f397516b48b07feb50213f1411154ecf43e12",
                "md5": "4145c2e1b9ab955ab0dc83e001a264a4",
                "sha256": "ac49761e408ce210164972a4997591288d8038abaee803d7e28ad75dd504717d"
            },
            "downloads": -1,
            "filename": "selenium_to_pdf-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "4145c2e1b9ab955ab0dc83e001a264a4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10,<4.0",
            "size": 2989,
            "upload_time": "2023-05-15T15:24:09",
            "upload_time_iso_8601": "2023-05-15T15:24:09.548782Z",
            "url": "https://files.pythonhosted.org/packages/fe/62/4265e49ba792f2920d3e001f397516b48b07feb50213f1411154ecf43e12/selenium_to_pdf-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-15 15:24:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mkbabb",
    "github_project": "selenium-to-pdf",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "selenium-to-pdf"
}
        
Elapsed time: 0.06695s