这篇文章主要讲解了“怎么掌握Vue3完整知识体系”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“怎么掌握Vue3完整知识体系”吧!
import reimport requests header = {‘User-Agent‘: "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/22.0.1207.1 Safari/537.1",‘Referer‘: ‘https://passport.lagou.com/login/login.html‘, } session = requests.session() r1 = session.get(‘https://passport.lagou.com/login/login.html‘, headers=header ) X_Anti_Forge_Token = re.findall(r"X_Anti_Forge_Token = ‘(.*?)‘", r1.text)[0] X_Anti_Forge_Code = re.findall(r"X_Anti_Forge_Code = ‘(.*?)‘", r1.text)[0]# X-Anit-Forge-Code:45530844# X-Anit-Forge-Token:7f50218e-0796-46bc-9190-1fbe6790cf56# X-Requested-With:XMLHttpRequestheader2 = header[‘X-Anit-Forge-Code‘] = X_Anti_Forge_Code header[‘X-Anit-Forge-Token‘] = X_Anti_Forge_Token# print(header2)session.post(‘https://passport.lagou.com/login/login.json‘, headers=header, data={ ‘isValidate‘: True, ‘username‘: ‘18611453110‘, ‘password‘: ‘70621c64832c4d4d66a47be6150b4a8e‘, ‘request_form_verifyCode‘: ‘‘, ‘submit‘: ‘‘, }, ) r3=session.get(‘https://passport.lagou.com/grantServiceTicket/grant.html‘, headers={‘User-Agent‘: ‘Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36‘,‘Referer‘: ‘https://passport.lagou.com/login/login.html‘, } )#第四步:验证r4=session.get(‘https://www.lagou.com/resume/myresume.html‘, headers={ ‘User-Agent‘: ‘Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36‘, } )print(‘18611453110‘ in r4.text) r6 = session.post(‘https://www.lagou.com/jobs/companyAjax.json‘, headers = header, params = { }, data={ } )print(r6.text)
感谢各位的阅读,以上就是“怎么掌握Vue3完整知识体系”的内容了,经过本文的学习后,相信大家对怎么掌握Vue3完整知识体系这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是亿速云,小编将为大家推送更多相关知识点的文章,欢迎关注!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。