Raspberry Pi Selenium Python -- Iceweasel doesn't load the page properly

193 views Asked by At

I hope you are doing great.

I have written a small script to do some scraping to monitor the price evolution of a product I intend to purchase. The script runs fine on my PC but when I try to port it on my RasPi it doesn't work completely. It runs the first page smoothly, but when trying to run the second page (which is a famous e-commerce website) the page is not displayed properly (there is no image, the disposition is different) as a result (I assume) it can't find the XPath.

I have tried several workarounds, given that the page runs normally on Chromium, I tried to replace driver.Firefox() by driver.Chrome() but it doesn't seem to function (plus I read somewhere that it did not, I was just trying my luck)

I tried to swap the XPath by CSS selectors but couldn't select the #text which appears to be a subpart of the tag.

I tried to run the browser headlessly (just in case) but it didn't work anyway.

As a consequence, I was wondering if you would have an idea for a potential solution given that you are way better than me at this.

Thank you in advance for your input and have a great day!

0

There are 0 answers