Home > other >  Consult the crawl the web, verification code url finally have a timestamp parameter, how to obtain s
Consult the crawl the web, verification code url finally have a timestamp parameter, how to obtain s

Time:09-16

Captcha url is: https://* * * * *. Com/opws - web/getCaptcha? T=1553435547176, the last a string of Numbers is a timestamp,
Web site source code, input validation code statement is: $(' # captchaImage). Attr (' SRC ', '/opws - web/getCaptcha? T="+ new Date (). GetTime ());

Everyone a great god, how to put a captcha url poking out specific time?

CodePudding user response:

See the js is to take the number of milliseconds of the current system, you directly take milliseconds in python data transmission in the past, why to extract, back-end server does not know that you are using js generated request or python generated request

CodePudding user response:

reference 1st floor ruancan response:
see the js is to take the number of milliseconds of the current system, you directly take milliseconds in python data transmission in the past, why to extract, back-end server does not know that you are using js generated request or python generated

But the use of python is always not accurate extraction of milliseconds ah, I can only use the selenium automatic landing pages for cookies, and then climbed

CodePudding user response:

The number of milliseconds in python and simple, time, time is () * 1000 milliseconds

CodePudding user response:

reference ruancan reply: 3/f
python in the number of milliseconds and simple, time, time is () * 1000 milliseconds

I say is not clear, is not difficult, but to get the actual produced by the number of milliseconds and js always can't together...

CodePudding user response:

(please don't delete the administrator, this is not water)
I ask the landlord to solve, I also encountered this problem before, time-stamped behind the URL

CodePudding user response:

Hope the great god to solve it

CodePudding user response:

Sometimes the timestamp is meaningless, just in order to prevent the browser cache, if so, generating timestamp line directly,

CodePudding user response:

I met the same problem today, very curious how the background discriminant for authentication code and input validation code is the same browser?

CodePudding user response:

references 9 f sersan response:
I met the same problem today, wonder how the background discriminant for authentication code and input validation code is the same browser?

Problem solved, as said, on the eighth floor and timestamp just in order to prevent the cache, I created a timestamp, to address the cookie information can distinguish which equipment is, as long as after submit verification code when take just cookies with you will be able to pass
  • Related