Home > other >  How to realize the Python crawl the web login and logout
How to realize the Python crawl the web login and logout

Time:09-21

Python scripts, a crawl web data website need to log in, through the use of requests. The session session, get the want of data, and packaging is obtained by a GUI program, now open the program, the login account, crawl data can be completed online, the problem is that I want to change the account to login again, but the login or login account for the first time, also get access to data, for the first time only shut down the program to open, change your account after logging in, to get the new data, a great god, please grant instruction, how to realize not to close the program, just login to an account can achieve crawl?

CodePudding user response:

[b] session is automatically saved cookie!
Then manually delete cookies???

CodePudding user response:

references on 1st floor day I reply:
[b] session is automatically saved cookie!
Then manually delete cookies???

, tried, through the session I opened the three pages, finally closed the session or delete cookies respectively, have failed to achieve
  • Related