i’m trying to scrape a js script of a website. It seems too confused, can’t find dictionaries or lists. What i tried to do is using requests (see example below).
lets say you want to find key:”storeRid” in an apple js file ‘https://www.apple.com/metrics/data-relay/1.1.4/scripts/data-relay.js’ (find it by using finder of the browser, you will see its dictionary-like)
how do I find that word, “storeRid” in this case, by looking for key, as an example.
Thanks
for items in jspage:
if 'key' in items :
print(items)
i was thinking about something as easy as this. or just as dictionaries jspage[‘key’]. No idea..