如何使用Grind从请求中获取html源代码

2024-09-30 12:20:26 发布

您现在位置:Python中文网/ 问答频道 /正文

我有以下脚本:

  def page2(self):
  """GET / (request 201)."""
     result = request201.GET('/mypage/', None,
     ( NVPair('Accept', 'image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-   shockwave-flash, */*'), 
     NVPair('Accept-Language', 'en-us'), ))

# here i want to print the html source code from the result

return result

脚本是使用Grinder Proxy录制的。非常感谢。在


Tags: theimageself脚本nonegetrequestdef

热门问题