Html-txt


NameHtml-txt JSON
Version 1.0.0.3 PyPI version JSON
download
home_pagehttps://www.facebook.com/bk4human
SummarySending urls get responce as html text
upload_time2023-11-18 17:29:30
maintainer
docs_urlNone
authorMahdi Hasan Shuvo
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyHtml
```bash

# html_txt Function
The html_txt function fetches HTML content from the specified URL, using optional headers and data for the request.
```bash
from your_module import html_txt

url = 'https://example.com'
headers = {
    'User-Agent': 'Your User Agent',
    'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
    'Accept-Language': 'en-US,en;q=0.9',
    'Accept-Encoding': 'gzip, deflate, br',
    'Connection': 'keep-alive',
}
data = {'key': 'value'}  # Optional data for POST requests

parsed_html = html_txt(url, headers=headers, data=data) # data for POST requests 
parsed_html = html_txt(url, headers=headers) #  for Get requests 
print(parsed_html)



            

Raw data

            {
    "_id": null,
    "home_page": "https://www.facebook.com/bk4human",
    "name": "Html-txt",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Mahdi Hasan Shuvo",
    "author_email": "shvo.mex@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/cf/fd/5d5301f2a36187827800c28c633000d127e2f9c2ebe1d6c66eb324cfc462/Html_txt-1.0.0.3.tar.gz",
    "platform": null,
    "description": "# pyHtml\n```bash\n\n# html_txt Function\nThe html_txt function fetches HTML content from the specified URL, using optional headers and data for the request.\n```bash\nfrom your_module import html_txt\n\nurl = 'https://example.com'\nheaders = {\n    'User-Agent': 'Your User Agent',\n    'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',\n    'Accept-Language': 'en-US,en;q=0.9',\n    'Accept-Encoding': 'gzip, deflate, br',\n    'Connection': 'keep-alive',\n}\ndata = {'key': 'value'}  # Optional data for POST requests\n\nparsed_html = html_txt(url, headers=headers, data=data) # data for POST requests \nparsed_html = html_txt(url, headers=headers) #  for Get requests \nprint(parsed_html)\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Sending urls get responce as html text",
    "version": "1.0.0.3",
    "project_urls": {
        "Homepage": "https://www.facebook.com/bk4human"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cffd5d5301f2a36187827800c28c633000d127e2f9c2ebe1d6c66eb324cfc462",
                "md5": "c8faf5474ab52f22affdba9ead8b81fb",
                "sha256": "c199023ac7be2f5d5cf8f2026e1a4685497e5b6b2b3551116387536ecf00c2a7"
            },
            "downloads": -1,
            "filename": "Html_txt-1.0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "c8faf5474ab52f22affdba9ead8b81fb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2457,
            "upload_time": "2023-11-18T17:29:30",
            "upload_time_iso_8601": "2023-11-18T17:29:30.642329Z",
            "url": "https://files.pythonhosted.org/packages/cf/fd/5d5301f2a36187827800c28c633000d127e2f9c2ebe1d6c66eb324cfc462/Html_txt-1.0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-18 17:29:30",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "html-txt"
}
        
Elapsed time: 1.27192s