structure change

This commit is contained in:
IshaAtteri
2026-02-11 17:55:24 -05:00
parent 0cc571727b
commit cb2fcd19eb
4 changed files with 0 additions and 99 deletions

24
Not_used/new_met.py Normal file
View File

@@ -0,0 +1,24 @@
import requests
url = "https://ulse.wd5.myworkdayjobs.com/wday/cxs/ulse/ulsecareers/job/Evanston-IL/Data-Science---Engineering-Intern_JR1410-1"
# url = 'https://motorolasolutions.wd5.myworkdayjobs.com/en-US/Careers/job/Schaumburg-IL/Machine-Learning-AI-Intern--Summer-2026-Internship-Program-_R59959?jr_id=69793e9952f3c27ec6459544'
# url = 'https://mcafee.wd1.myworkdayjobs.com/External/job/US-California-San-Jose/Data-Science-Intern_JR0032270?jr_id=6979499688e2b47213bd807f'
page = requests.get(url)
print(page.content)
# data = page.json()
# print(data.keys())
# print('here')
# job = data["jobPostingInfo"]
# print(job.keys())
# company = data["hiringOrganization"]
# print(company.keys())
# comp = company["name"]
# print("Company:", comp)

27
Not_used/part2.py Normal file
View File

@@ -0,0 +1,27 @@
import requests
endpoints = [
"https://ulse.wd5.myworkdayjobs.com/wday/cxs/ulse/ulsecareers/job/Evanston-IL/Data-Science---Engineering-Intern_JR1410-1",
"https://ulse.wd5.myworkdayjobs.com/wday/cxs/ulse/ulsecareers/sidebar/Data-Science---Engineering-Intern_JR1410-1",
]
headers = {
"User-Agent": "Mozilla/5.0",
"Accept": "application/json,text/plain,*/*",
}
for url in endpoints:
r = requests.get(url, headers=headers, timeout=30)
print("\n===", url, "===")
print("Status:", r.status_code)
print("Content-Type:", r.headers.get("content-type"))
# Try JSON
try:
data = r.json()
print("JSON parsed ✅")
if isinstance(data, dict):
print("Top-level keys:", list(data.keys())[:40])
else:
print("Type:", type(data), "Len:", len(data))
except Exception:
print("Not JSON. Text preview:\n", r.text[:600])