Puppeteer Crawler cannot open the page
Hi,
I have a puppeteer scrapper, which worked just fine until this Monday. Nothing is changed, but scrapper stopped working.
The HTML markup of the page is not changed, a[data-testid="search-listing-title"] this element is still there. Apify run logs says it is failing to find this HTML element:
TimeoutError: waiting for selector a[data-testid="search-listing-title"] failed: timeout 30000ms exceeded
I have tried to launch scrapper from local machine and it did work but does not work on Apify platform. I guess something has to do with proxy.
This is part of my code:
I have tried to take a screenshot to see what the page looks like and it gives blank white page.
I have also tried to change proxy settings to use residential servers and change the country - also did not work.
How can I debug this?
Logs screenshot is also attached.
10 Replies
Hi @4unkur ,
Can you try to run https://apify.com/apify/screenshot-url on the url, that failed for you?
Just out of curiosity I tried to run it on page like
https://www.autotrader.co.uk/car-search?postcode=PO16%207GZ&refresh=true
and it seems all the data are there 🤔Apify
Website Screenshot Generator - Screenshot URL · Apify
Create a screenshot of a website based on a specified URL. The screenshot is stored as the output in a key-value store. It can be used to monitor web changes regularly after setting up the scheduler.
exotic-emeraldOP•14mo ago
OK, I'll try it.
The problem is not with single URL. As you can see it's car listings website and basically we scraping the vehicles.
@4unkur just advanced to level 1! Thanks for your contributions! 🎉
exotic-emeraldOP•14mo ago
@Pepa J react skeleton can be seen here.
My guess is maybe "stealth" mode of puppeteer is not working or something. I'm thinking maybe I'll upgrade apify SDK to the latest. I don't know...
@4unkur Hmm it was not an issue in my case https://api.apify.com/v2/key-value-stores/jFQ21JPffUf9dmV4x/records/screenshot-www-autotrader-co-uk-68747470733a2f2f7777772e6175746?disableRedirect=true 🤔
exotic-emeraldOP•14mo ago
@Pepa J not a big deal. In my actor I get complete blank screenshot
I mean the data seems to be there, I am using just a DATACENTER proxies for me I am trying to think about what may cause is in your case.
exotic-emeraldOP•13mo ago
@Pepa J
Hi, I have upgraded to apify v3 (I rewrote it in pure JS)
the selector can be seen now. That part is solved. I guess puppeteer's stealth plugin was not making it's job and I was blocked... With new sdk it works OK.
So the main problem is solved. Should I close the topic or something?
BTW I have a new problem (:, I've posted here https://discord.com/channels/801163717915574323/1231166329076191274
@4unkur Thank you. No this is fine.