<jupyter_start><jupyter_text>AboutBasic Notebook to ping a url using `requests`package InputsRequired Inputs:* `url` to ping Outputs* Response Soup  Setup<jupyter_code>import datetime

from bs4 import BeautifulSoup
import requests<jupyter_output><empty_output><jupyter_text>Settings<jupyter_code>url = 'https://en.wikipedia.org/wiki/Main_Page'
headers = None # {"placeholder":"value"}<jupyter_output><empty_output><jupyter_text>Ping Endpoint<jupyter_code>r = requests.get(url, headers = headers)
soup = BeautifulSoup(r.text, 'html.parser')<jupyter_output><empty_output><jupyter_text>Analyse<jupyter_code>r
print(soup.text)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11809815950920245, 'fraction_numerical': 0.0015337423312883436, 'mean_word_length': 11.092592592592593, 'pattern_counts': {'":': 1, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '111124', 'license': 'MIT', 'n_tokens_mistral': 238, 'n_tokens_neox': 232, 'n_words': 36, 'path': 'notebooks/NB01 - Ping Endpoints.ipynb', 'repo_name': 'FergM/flight_tables', 'size': '652'}