ehiaborsuccess/OutreachAI
0
1import requests2import urllib.parse3 4query = "Business Analyst hiring recruiter London email"5headers = {6 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1'7}8 9def check_html():10 try:11 url = f"https://www.google.com/search?q={urllib.parse.quote(query)}&gbv=1&hl=en"12 resp = requests.get(url, headers=headers, timeout=12)13 print(f"Status: {resp.status_code}")14 print(f"Content length: {len(resp.text)}")15 print("--- First 500 chars ---")16 print(resp.text[:1000])17 except Exception as e:18 print(f"Error {e}")19 20check_html()21 