I have this python request code that works but I don't understand what the parameters represent. I want to understand how the set parameters for python request and if there is a good reference for this. Here is the code i use
url = 'https://www.walmart.com/store/1003-York-pa/search?query=ice%20cream'
api_url = 'https://www.walmart.com/store/electrode/api/search'
params = {
'query': word,
'cat_id': 0,
'ps': 24,
'offset': 0,
'prg': 'desktop',
'stores': re.search(r'store/(\d+)', url).group(1)
}
data1 = requests.get(api_url, params=params).json()
I understand most of the code but don't really understand these attributes of param
'cat_id': 0,
'ps': 24,
'offset': 0,
could anyone please explain provide an explanation for this and how to set parameters for python request