Kierkegaard
Junior Member
- Jul 29, 2022
- 131
- 59
Hey there !
Today I faced a big problem ! I make a software that work perfectly with my big computer but hurt when launching it in a Windows VPS.
Its a Python Bot that scrap PAA results in Google for a given word. Its really simple and you can test this at home if you want: when you click on a People Also Ask question it unspoil the body text and it make news PAA appear. The fact is that you can sometimes do it 1000 times for a word and with a not powerfull computer the navigator struggle to keep rendering the page (with Chrome it was crashing in my VPS).
I goes with firefox and works very well, no crash, but when reach a certain level of "DOM size" it begin go very slowly and collect a new PAA each 2 hours instead of 1 second..
Anyone faced a similar problem or got an idea ? I was planning to do something like: when scrap a new PAA, remove the DOM of everything that go before it.
But not very sure if that is a good solution..
Hope someone can help me lol, thanks for reading me guys !
Bisous
Today I faced a big problem ! I make a software that work perfectly with my big computer but hurt when launching it in a Windows VPS.
Its a Python Bot that scrap PAA results in Google for a given word. Its really simple and you can test this at home if you want: when you click on a People Also Ask question it unspoil the body text and it make news PAA appear. The fact is that you can sometimes do it 1000 times for a word and with a not powerfull computer the navigator struggle to keep rendering the page (with Chrome it was crashing in my VPS).
I goes with firefox and works very well, no crash, but when reach a certain level of "DOM size" it begin go very slowly and collect a new PAA each 2 hours instead of 1 second..
Anyone faced a similar problem or got an idea ? I was planning to do something like: when scrap a new PAA, remove the DOM of everything that go before it.
But not very sure if that is a good solution..
Hope someone can help me lol, thanks for reading me guys !
Bisous