-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to continue with date searching #28
Comments
I'm having the same issue, it seems that the driver is unable to get the json file from |
Hi, same here, it seems that DATE_URL query is not retrieving the dates even getting the 304 from the request in the web site. |
im having the same problem.... |
I refreshed the page on my own and checked the request headers. It seems the get URL is not the main reason for the problem. A header problem has caused the 404 Error. So, I checked the new request header and compared it with the manual get request, and these were the differences between the two requests.
Original Request:
I think it's the Referer. We should set the Referer into the header before requesting. I didn't check it yet. However, I believe this is the cause. CSRF can be the next reason. |
Hi, |
This may solve the problem.
|
Hi @jaimbox, Can you please help where to input this? |
Is it due to nee chrome version update? |
Hi guys, if someone have the fix. Please help us. |
With Selenium in Python you can run javascript, put it in the place where you need to get the available dates. |
Hi I was able to get the dates by adding the following code:
Now I'm trying the same for TIME_URL, but no luck. Output from the execution:
When inspecting the operation in chrome get retrieves the correct information. |
The following works for me, with the @jaimbox code, when loading date you need to load all the dates in the appointment site
For times, you just have to do the same in get_time fonction.
|
Hi thanks for the answer. I'm not able to use cookie in the execute_script. This is what I got:
|
@Camilo2015 could you please upload the latest version with updates entire page? |
@Orastikroat I would like to, but now I'm struggling with the site IP blocking. After a couple of uploads, the site doesn't load and I don't know if it's really the IP. I don't know if you have the same issue. |
Hi when I got that one I use a VPN to reach the website |
Appreciate if someone can upload the updated file. |
Here is the partial script that I integrated all knowledge shared from this conversation. All credits to @jaimbox and @Camilo2015. It's pretty messy, but it works for me, for both get available dates and rescheduling. In specific, the functions that I made changes are
|
def get_driver(): The above needs to be inserted before driver = get_driver() |
@AdriandLiu you're a genius!!! thank you so much brother much appreciate it! it works after the driver amendment |
@AdriandLiu will it work for group ? |
Yah, I was aware of that, it was a draft. Thanks for pointing it out, I have added the missing functions to the comment.
I'm not sure, feel free to test it yourself and let us know the results. |
@AdriandLiu I am sorry to to inform you that I do not have any programming background and I was looking to expedite my family appointment prior to the current date. I was searching online and ended up in this discussion. |
@AdriandLiu thanks for your help I've been doing some changes in order for the script to work, but I'm stuck on MY_CONDITION.
|
My bad, I have added the missing variables/functions there, please check the latest updates of #28 (comment) |
Sorry mine is individual appointment request, afraid my inputs are not helpful here. |
Happily, it now works, but after a few searches, it will be banned. I'm not sure if this is an IP level ban. |
@AdriandLiu Thanks! Don't we need to check for login in
|
@uxDaniel anyway to make it suitable for a group ? |
@Orastikroat my apologies for not putting the code, it is a mess for now in my PC, thanks @AdriandLiu for sharing the clean code. |
Hi @Camilo2015 I know the website banned us for too many attempts so what I've been doing is just try every 5 or 7 min, so far I have not gotten banned. |
This seems to be an update to the site, before this, set 20S or 300S retry, will be banned in about 4 hours, this is inevitable. Now try 5-6 times and be banned. It seems that the retry time can only be extended to resolve the ban, but earlier I set the retry time to 10 minutes and it was still banned after 4 hours, so it is not clear what the new rule is |
it's okay brother thanks for your effort tho |
Can someone share the new values for STEP_TIME = 0.5 # time between steps (interactions with forms): 0.5 seconds without getting banned ? |
do you guys know some service i can pay for handle this scenario? |
@brunojs02 |
I disagree, beucase i couldn't load the page anymore, probabily a cnd block |
Well hi guys, i don't know anything about programming and aren't able to execute this in my pc , but now it seems that it's not worth to even run this file because appointments are very unpredictable and as we know website bans after 10-15 searches for 10 hours, so it's not worth until we can find any unban code . I know a Chinese coder who successfully made it but he isn't interested in sharing or selling his codes , so it's upto you guys to find and share it , thank you. |
The text was updated successfully, but these errors were encountered: