xHamster - How to download galleries behind a user's favorite photos

Post Reply
Xaver Schmidt
Posts: 7
Joined: 15 Apr 2015, 10:57

xHamster - How to download galleries behind a user's favorite photos

Post by Xaver Schmidt » 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.

Maxim
Site Admin
Posts: 1316
Joined: 02 Mar 2009, 17:02

Re: xHamster - How to download galleries behind a user's favorite photos

Post by Maxim » 26 Feb 2020, 14:29

You can use the following Custom Parser to create gallery links from photo links and automate the process:

Expression: (https?://xhamster\.[^/]+/photos/gallery/[^/]+)/\d+
Result: [#1]

Post Reply