I have a website I need to scrape and it is using jquery AJAX function to get information from the server. I have been investigating the code for a while and I successfully
Solved it! I added 'X-Requested-With': 'XMLHttpRequest' to headers and did:
'X-Requested-With': 'XMLHttpRequest'
pn = '1234' r = requests.get(ajaxurl + '?part_number=' + pn, headers=headers, cookies=cookies)
Did not understand why though :(