最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python library requests_html memory problems - Stack Overflow

programmeradmin0浏览0评论

Using the basic example multiple times seems to use a lot of ram which is not released until the program is exited. It doesn't take very long before it is using 10GB of memory. Have i misunderstood how the module works or is it a problem with the module itself?

from requests_html import HTMLSession
import time
session = HTMLSession()

while True:
  r = session.get(";)
  r.html.render()
  r.html.find('.hide-on-mobile.center-block.top-space')
  time.sleep(60)
发布评论

评论列表(0)

  1. 暂无评论