Skip to main content

Sending urls get responce as html text

Project description

pyHtml

# 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Html_txt-1.0.0.3.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file Html_txt-1.0.0.3.tar.gz.

File metadata

  • Download URL: Html_txt-1.0.0.3.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for Html_txt-1.0.0.3.tar.gz
Algorithm Hash digest
SHA256 c199023ac7be2f5d5cf8f2026e1a4685497e5b6b2b3551116387536ecf00c2a7
MD5 c8faf5474ab52f22affdba9ead8b81fb
BLAKE2b-256 cffd5d5301f2a36187827800c28c633000d127e2f9c2ebe1d6c66eb324cfc462

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page