Spaces:
Building
Building
File size: 572 Bytes
7a8853f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import http.client
import json
conn = http.client.HTTPSConnection("scrapemaster-website-2-text.p.rapidapi.com")
headers = {
'x-rapidapi-key': "2a155d4498mshd52b7d6b7a2ff86p10cdd0jsn6252e0f2f529",
'x-rapidapi-host': "scrapemaster-website-2-text.p.rapidapi.com"
}
conn.request("GET", "/convert?target=https://timesofindia.indiatimes.com/technology/tech-news/deepseek-has-an-api-request-for-its-customers-please-understand/articleshow/117987906.cms", headers=headers)
res = conn.getresponse()
data = res.read()
print(json.loads(data))
# print(data.decode("utf-8")) |