I am new to this and I am working on a project, where i have to get hotel rate and room type from makemytrip.com
1 step - I search Octave hotel in Banglore( India ) in makemytrip.com
2 step - I inspect the browser for json file where i can get the data
I got this url json type url link of Type =application/json which contains data that i wana read but when i read the url using this code
import requests
r = requests.get('https://hotelz.makemytrip.com/makemytrip/site/hotels/detailJsonData?ajaxCall=T&session_cId=1466139781139&city=BLR&country=IN&checkin=06302016&checkout=08072016&searchText=null&area=&roomStayQualifier=1e0e&hotelId=201503101445304217&i=null')
r.headers['content-type']
the type i am getting is text/html instead of application/json
How to read this data ??