验证码的url为:https://*****.com/opws-web/getCaptcha?t=1553435547176,最后的一串数字是时间戳。
网页源代码中,输入验证码的语句为:$('#captchaImage').attr('src','/opws-web/getCaptcha?t='+ new Date().getTime());
各位大神们,怎么把一个验证码url的具体时间戳提取出来呢?
...全文
17029打赏收藏
请教下爬取网页时,验证码url最后有一个时间戳的参数,怎么获取具体的url
验证码的url为:https://*****.com/opws-web/getCaptcha?t=1553435547176,最后的一串数字是时间戳。 网页源代码中,输入验证码的语句为:$('#captchaImage').attr('src','/opws-web/getCaptcha?t='+ new Date().getTime()); 各位大神们,怎么把一个验证码url的具体时间戳提取出来呢?