Member-only story

Webscraping Without Using Selenium, dealing with JSON data in Python

The Scraper Guy
5 min readJan 28, 2024

--

Following on from my last two articles, dealing with web scraping using requests, Today we are focused on how to organize the JSON response objects we get when making those requests.

Link to the full code can be found here

https://github.com/paulc160/PP-IP-Scraper/blob/main/PP%20Ip%20Scraper.ipynb

Before you read this article go back and view my other articles particularly this one which details a couple of different methods to scrape.

I am using the simplest method today, by making a get request in Python to an endpoint. We will be scraping PaddyPower here just like the last tutorial, focusing on In-Play football matches.

We begin by making the call to the endpoint as you have seen before and parsing the response page into json.

import requests
import json

# Replace 'your_endpoint_url' with the actual URL you want to call
endpoint_url =…

--

--

The Scraper Guy
The Scraper Guy

Written by The Scraper Guy

Teaching You How to Scrape Using Python LinkTree - https://linktr.ee/scrapingguy

Responses (2)