Open dumblejd opened 7 months ago
nvm, got it work after using this
def get_date():
driver.get(DATE_URL)
driver.get(APPOINTMENT_URL) session = driver.get_cookie("_yatri_session")["value"] NEW_GET = driver.execute_script( "var req = new XMLHttpRequest();req.open('GET', '"
- str(DATE_URL)
- "', false);req.setRequestHeader('Accept', 'application/json, text/javascript, /; q=0.01');req.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); req.setRequestHeader('Cookie', '_yatri_session="
- session
- "'); req.send(null);return req.responseText;" ) return json.loads(NEW_GET)
tried in different time in case it's frequent access deny, still got 404 page when it run get_date().
I tried with different facility code (from 90-95) in case Vancouver don't have much slot.
the link is following, I replace the id with xxxx to protect my info: https://ais.usvisa-info.com/en-ca/niv/schedule/xxxx/appointment/days/95.json?appointments[expedite]=false