Answer the question
In order to leave comments, you need to log in
How to parse json-ld object without downloading the whole page?
Welcome all. There is the following code.
import extruct
import requests
import pprint
from w3lib.html import get_base_url
pp = pprint.PrettyPrinter(indent=2)
r = requests.get('https://avtoinstrument.kz/p58052466-podemnik-dvuhstoechnyj-380v.html')
base_url = get_base_url(r.text, r.url)
data = extruct.extract(r.text, base_url=base_url)
pp.pprint(data)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question