remcalu / Poocoin-Monitor

A python script that monitors poocoin charts and notifies the user when there's a change that the user has deemed significant
8 stars 1 forks source link

Page didn't load after 30 seconds, trying again! #1

Closed Little-Chen-T closed 2 years ago

Little-Chen-T commented 2 years ago

The element on the web page is always missing, So I've been loading web pages.

"Page didn't load after 30 seconds, trying again!" "Page didn't load after 30 seconds, trying again!" "Page didn't load after 30 seconds, trying again!" "Page didn't load after 30 seconds, trying again!"

。。。

how can I solve this problem

Little-Chen-T commented 2 years ago

By opening Google browser, I can manually locate the elements we want image

Little-Chen-T commented 2 years ago

I checked. The browser has no restricted access, but why can't we find the element we want. I hope someone can help me. Thank you very much

image

remcalu commented 2 years ago

Hey, sorry I didn't see your issue until now, I haven't updated this repository in several months so everything is outdated as poocoin changes their website quite frequently, however you can use my code as a starting point by forking and build off of it, you could also open up a PR if it's a quick fix 🙂

Little-Chen-T commented 2 years ago

Thank you! Your code is very well written and still applicable to poocoin. I solved the problem by commenting out this statement "coptions.add_argument('--headless')", and allowing the browser to load it, but I can't let chrome run monitoring data in the background.

remcalu commented 2 years ago

No problem, yeah I think I was having that issue with another one of my webscrapers, anyway, glad it works now!