xHamster - How to download galleries behind a user's favorite photos
Posted: 26 Feb 2020, 14:04
On the Extreme Picture Finder homepage there are already xHamster templates available, but there is no template for the above task.
First, let's take a look at the structure of favorite photo galleries:
https://xhamster.com/users/USERNAME/favorites/photos
https://xhamster.com/users/USERNAME/favorites/photos/2
https://xhamster.com/users/USERNAME/favorites/photos/3
and so on.
On each of these pages there are up to 60 photo thumbnails. Each photo is part of a gallery. And we want to download all those galleries.
Luckily the above pages are not flooded with unneeded information, so it is easy to find and extract all photo links.
Those links are in the following format. The numbers however can be longer or shorter
https://xhamster.com/photos/gallery/1234567/98765432
Good thing is, that we just have to remove the last number, to get a working link to the gallery behind that photo. In this example that is:
https://xhamster.com/photos/gallery/1234567
So, the only thing left to do is use all shortened photo links and use them as start addresses in a new project. Extreme Picture Finder will automatically choose the correct template: 'xhamster.com - gallery template'. And this template will even save those galleries to folders with the full gallery name, not only the numbers.
Those of you, who are familiar with creating templates will for sure be able to automate the whole thing.
First, let's take a look at the structure of favorite photo galleries:
https://xhamster.com/users/USERNAME/favorites/photos
https://xhamster.com/users/USERNAME/favorites/photos/2
https://xhamster.com/users/USERNAME/favorites/photos/3
and so on.
On each of these pages there are up to 60 photo thumbnails. Each photo is part of a gallery. And we want to download all those galleries.
Luckily the above pages are not flooded with unneeded information, so it is easy to find and extract all photo links.
Those links are in the following format. The numbers however can be longer or shorter
https://xhamster.com/photos/gallery/1234567/98765432
Good thing is, that we just have to remove the last number, to get a working link to the gallery behind that photo. In this example that is:
https://xhamster.com/photos/gallery/1234567
So, the only thing left to do is use all shortened photo links and use them as start addresses in a new project. Extreme Picture Finder will automatically choose the correct template: 'xhamster.com - gallery template'. And this template will even save those galleries to folders with the full gallery name, not only the numbers.
Those of you, who are familiar with creating templates will for sure be able to automate the whole thing.