我试图跟踪使用pythongrab
框架的人,但是我不知道如何单击follow按钮。到目前为止,我的代码发送了一个post请求https://github.com/users/follow?target={username}
,但是由于某些原因它不能工作。在
user_url = "http://github.com/{username}"
g.go(user_url)
g.setup(method="post")
g.request(url="https://github.com/users/follow?target={username}", post={'target': '{username}'})
g.doc.save('x.html')
目前没有回答
相关问题 更多 >
编程相关推荐