3 ms·
> By loading the paginated data through javascript without a page reload, this significantly complicates the job for a lot of scrapers out there. Google only re
by ceejayoz 15y ago
> By loading the paginated data through javascript without a page reload, this significantly complicates the job for a lot of scrapers out there. Google only recently itself started parsing javascript on page. There is little disadvantage to reloading the data like this.
Well, unless you're visually impaired and using a screen reader... and it doesn't really complicate things for any halfway dedicated scraper, as your AJAX pagination requests probably follow the same predictable pattern as the non-AJAX ones would've.
- joshu 15y agoAJAXification could make it much easier. GET -> json import.
- paulgb 15y agoExactly what I was thinking. Heck, I've scraped using fake AJAX requests even when a legitimate API was available, simply because opening up firebug was faster than reading the API docs.
- jamesaguilar 15y agoThis is exactly what I used for my project to scrape Path of Exile item data.
- joshu 15y agoHa! I did the same for KoL once upon a time.
- jumpbug 15y agoThat is why I suggest using as many of these in combination as possible. A lot of your basic scraping scripts won't have this functionality built in.
- jacobr 15y agoDo you have any real-world examples of commonly used screen readers that can't handle JavaScript? Screen readers gets its content from the DOM in a browser, so if the browser is able to put it in the DOM, it should be available to the screen reader. 98.4% of screen reader users in a 2010 survey (http://webaim.org/projects/screenreadersurvey3/#javascript http://webaim.org/projects/screenreadersurvey3/#javascript) had JavaScript enabled.
- TeMPOraL 15y agoAnd if a screen reader can see the data, so can the scrapper.