(unfaithful person) Crawler problem: how to generate automatically generated srand characters in url? Neither the package nor the source code can find the generation method.

problem description

the website crawled is http://www.hljcredit.gov.cn/W.

.

Source

                <a href="WebCreditQueryService.do?sxbzxrQgDetail&dsname=hlj&dt=1&icautiouid=1230610007039893636&srandRe=J7137HK1408EJB2JQ9P05UF3949HWD"  style="text-decoration: underline;" target="_blank" title="" style="">    
How is the url of

generated? After refreshing the page, the srandRe after this url will change randomly. If you want to access the WebCreditQueryService.do?sxbzxrQgDetail&dsname=hlj&dt=1&icautiouid=1230610007039893636&srandRe=J7137HK1408EJB2JQ9P05UF3949HWD connection, you need to take that random parameter with you, and I wonder how this random number is generated?

because the url is pulled down when the crawler is crawled, but the connection will expire in about 1 minute and cannot be accessed. So I think this random number is used to control your browsing buffer time.

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Apr.07,2021

has said that it is rand, which means that a token, automatically generated by the server will prompt "do not visit and attack maliciously" after it is removed, indicating that it is a protection policy.

if you want to use it next time, I tested it. This srandRe can be generated on the spot, which has nothing to do with the previous id. When you need to use it, grab the srandRe on the list page on the spot and spell it to the corresponding link

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37345-2adbb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37345-2adbb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?