0

I ran into the trouble when I made Page Refresh script.

Here's the code:

import spynner
browser = spynner.Browser()

When I type

browser.load("http://stackoverflow.com")

..a few times, the script eats very much RAM.

I tried:

browser = spynner.Browser()
browser.load("http://stackoverflow.com")
browser.close()

but it does not help, in other words, the eaten RAM was still the same.

So my question would be how I could load any page many times without getting my RAM to be eaten up.

Thanks in advance!

jamylak
  • 128,818
  • 30
  • 231
  • 230
Martin Eliáš
  • 387
  • 1
  • 5
  • 11

1 Answers1

1

Please try using Ghost.py. Form what I've seen while using it myself, it is a resource-light, fast headless Python browser.

Soham Chowdhury
  • 2,125
  • 2
  • 18
  • 29