170 karma · joined Feb 12, 2018 (8y ago) · 26 submissions
comment 8y ago · link · parent
But you are right, after reading through it again, this section of the article should be improved.
comment 8y ago · link · parent
It's bad that not everyone works like this; there are quite a lot of people who would rather brute-force a solution than think about it.
6.
Bypassing website anti-scraping protections(kb.apify.com ↗)
235 points · by jardah · 8y ago · 118 comments
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
Also, looking at pinterest, it's server rendered through ReactJS, so there is #initial-state script tag with first few images preloaded as urls, so if you cared only about the images on top without scrolling then this is the safest bet.
comment 8y ago · link · parent
For more advanced usage (like clicking, or submiting a search request) it would need to have some kind of scenario like: "Click on this" -> "wait till this loads" -> "type something here" -> "scroll to this" -> load data.
Which is possible with headless chrome, so the trick is to make it general and easy to use (something like recording what user does through chrome plugin). Maybe in future versions :)
comment 8y ago · link · parent
comment 8y ago · link · parent
Btw when it comes to ToS and scraping, this is not much different from accessing their website through normal browser only instead of rendered content we should you analyzed data. The page is only loaded once same as in browser.
comment 8y ago · link · parent
comment 8y ago · link · parent
Btw the fact that it's running for 5 minutes is a bug, that I will look at, since there is a timeout of 2 minutes and there are no hanging runs or runs that ended with timeout.
26.
Show HN: Web scraping page analyzer(apify.com ↗)
166 points · by jardah · 8y ago · 50 comments