Bla*_*man 7 python beautifulsoup
我正在使用python和beautifulsoup(两者都是新的!),我想登录供应商网站.
所以他们的形式看起来像(简化):
<form name=loginform action=/index.html method="post">
<input name=user>
<input name=pass">
</form>
Run Code Online (Sandbox Code Playgroud)
有没有办法跟踪cookie?
做一些阅读.
了解urllib2 这就是您用来登录POST的方法.如果你知道<input>名字,你不需要美丽的汤. http://docs.python.org/library/urllib2.html
美丽的汤是你用来解析一页结果.登录后.发布真实请求后.