When I open an URL with opened devtools(F12 Chrome) in network tab I can see the request I’m looing for so I know its headers (parameters and values) and its response.
I can’t send successful request directly from code cuz it contains key I don’t know how it’s generated.(yet)
So how can I do this?:
- Open URL in a webbrowser (I have a link)
- Fetch specific request (by known parameters and its values of request’s headers)
- Get a value from this request’s Response (formatted json)
I’m just learning so maybe I can do it all w/o actually opening browser. I googled things like ‘webbrowser’ (I’m planning to use), ‘urllib2/3’, ‘scrapy’, ‘requests-html’, ‘selenium’, ‘chromedriver’ but you know…it’s hard to recognize its functions and what is most suitable for my task.
python version: last available
Source: Python Questions