Comments (1)
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)
from visa_rescheduler.
Related Issues (20)
- doest this work when you have to schedule your biometric too?
- Does it work for family appointment mode? HOT 2
- got time successfully but no change HOT 9
- Both ASC and Consulate? HOT 1
- Not showing any dates HOT 1
- How to verify the rescheduling funciton without having to reschedule?
- Is there a maximum limit on how many times one can reschedule their appointment? HOT 8
- Creating Group Appointments
- List is empty, Probabely banned!
- Getting error after login in chrome
- Automatic rescheduling fails after finding available date.
- ERROR HOT 1
- Exception occurred: Message: no such element: Unable to locate element HOT 6
- Group Booking- H1 & H4?
- Only get the latest time not actually update the application HOT 1
- License HOT 1
- Failed to schedule
- SELENIUM WEB DRIVER EXCEPTION: CAN NOT CONNECT TO THE SERVICE
- r
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from visa_rescheduler.