I have following code:
from requests_html import HTMLSession
ses = HTMLSession()
r = ses.get(MYURL)
r.render(keep_page=True) # This will now render the html page
Calling render triggers a load of requests for js, bit maps, etc. Is there any way I can get a trace of status codes for each requests. I'm mostly interested in 404, but 403, and 5xx errors might be interesting as well.
Aucun commentaire:
Enregistrer un commentaire