用 post 解析 html 库

问题描述 投票:0回答:0

问题的本质:我在一个文本文件中有一个自动标识,我将其附加到链接https://elibrary.ru/defaultx.asp?,但是当我无法在网站上获得授权令牌时提交我的登录名和密码

text file:autorid = 111111
          autorid = 111222
          autorid = 111333
authorid = re.sub('.*?([0-9]*)$', r'\1', line2)
url = 'https://www.elibrary.ru/author_items.asp?authorid=' + authorid

work.get("https://elibrary.ru/defaultx.asp?", headers=headers)
data = {"login": "111", "password": "111"}
result = work.post("https://elibrary.ru/defaultx.asp?", headers=headers, data=data, allow_redirects=True)

parsing html-parsing text-parsing
© www.soinside.com 2019 - 2024. All rights reserved.