Basic HTTP Request Tool

import requests response = requests.get("https://google.com") print("Status Code:", response.status_code) print("Body:", response.text)

Code output

Status Code: 200 Body: <!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="en-IN"> <head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <meta content="/images/branding/googleg/1x/googleg_standard_color_128dp.png" itemprop="image"> <title>Google</title> <script nonce="...">/* JavaScript code */</script> <style> body { background: black; color: #1f1f1f; } a { color: #681da8; } </style> </head> <body> <div id="mngb"> <!-- Top navigation links --> </div> <center> <img src="/images/branding/googlelogo/1x/googlelogo_white_background_color_272x92dp.png" alt="Google"> <form action="/search"> <input name="q" placeholder="Search Google"> </form> </center> </body> </html>