The bot proxy IP is provided by the Sesame HTTP service provider
Today, when I was writing a crawler, I had to turn pages and divide the page.
' - ' = Int (totalcount)/20
Valueerror:invalid literal for int. () with base 10 error
The same error on the web is suggested to use round (float ("1.0")), but can not solve my problem, round (float ("1.0") is used to solve the floating-point number converted to shaping numbers,
And I this is because the original string into the shape after the division, although a period of time may not error, but a long time will prompt (in fact, is a warning, but will force the termination of your program), the correct solution is as follows:
Remove non-numeric characters from the string. Pro-Test available
TotalCount = Re.sub ("\d""", TotalCount)
Practical workaround for Python in valueerror:invalid literal for int () with base 10