I'm want to access some data from:
https://www.calorie-charts.info/food/all/banana
I tried a Python Request Session but it takes up to 2 minutes to get a response.
import requests
s = requests.Session()
headers = {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.79 Safari/537.36'
}
url = 'https://www.calorie-charts.info/food/all/banana"'
s.headers.update(headers)
r = s.get(url)
print(r.text)
I also tried to find an api link for a XHR Request but I couldn't find one in the Dev Tool - Network Tab.
How can I speed up the process or find a link for a XHR Request?