Discussion about this post

User's avatar
Alex Lokhov's avatar

Hi Pierluigi, maybe it is worth mentioning that Playwright and Requests response objects have built-in json() functions.

So in your example, instead of doing

data = json.loads(response.text())

You can do

data = response.json()

which, I believe, is a bit more concise.

Expand full comment
1 more comment...

No posts