mardi 28 septembre 2021

How to "skip" first response with python requests.get

i want to automatically get some information off a website target.url when i open it in the browser a short loading screen shows up and then the information is displayed.

So when i use

resp = reqeusts.get(target.url)
wirte_to_disk(resp.text)

i only get the loading screen animation since its the first response to an http request to this site.

Is there a way to "skip" this response or to establish a connection and send multiple requests via this connection? I tried several things but none of them worked for me :)




Aucun commentaire:

Enregistrer un commentaire