Answer the question
In order to leave comments, you need to log in
Site parsing after js loading?
There is a site that needs to be parsed ( https://catalog.onliner.by/mobile ). However, it loads the data via js. I'm using the requests python library, however it parses the page before requests (requests.get(url)). How to parse the page completely or make the parser stay on the page?
import requests
f = open ('ind.txt', 'w')
url ='https://catalog.onliner.by/mobile?mfr%5B0%5D=xiaomi'
r = requests.get(url)
f.write(r.text)
print(r.text)
f.close()
Answer the question
In order to leave comments, you need to log in
Correct link:
https://catalog.onliner.by/sdapi/catalog.api/searc...- he gives everything ready-made, in json.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question