'How can I find the target URLs of the tiles on this webpage? (And hidden data too, if possible) [closed]
There is a website with a directory of 1,296 items on 54 index pages of 24 items each. Each item is represented by a tile that provides some information and is hyperlinked to a page with more details. I've studied the HTML of the index pages (not available by viewing source, but it is available in DevTools), and it contains all the data displayed in the tiles, but it does not contain the URLs that the tiles are linked to.
The structure of the HTML is strange (at least to me) in that most of the code on every index page appears to contain all or most of the data contained on the 24 detail pages linked on index page 1. I don't understand why those data would be repeated in all 54 index pages when they're only used to make up the detail pages linked from index page 1. And I wonder why the system makes those data for the first 24 detail pages readily available in the HTML (if one knows enough to use DevTools), but it appears to keep the data of the other detail pages hidden somewhere. And I wonder even more if there's a way to find those data for the detail pages linked on pages 2 through 54 without needing to read the HTML of the 1,272 separate pages (1,272 = 24 detail pages * 53 index pages after page 1). Is there a way to do that?
And here's a simpler question:
The data for those first 24 detail pages includes the slugs from which the URLs for those page are constructed. So I can get the URLs for the detail pages linked on index page 1. Most of the slugs are made by simply concatenating the strings of the item name with spaces converted to hyphens, but that algorithm is not reliable if the name is at all complicated. So for the index pages after the first, is there a way to find out the URLs that the tiles link to?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
