Xhamster - get specific users new galleries only

Post Reply
wsshow
Posts: 1
Joined: 21 Feb 2020, 04:51

Xhamster - get specific users new galleries only

Post by wsshow » 21 Feb 2020, 05:08

I was wondering how hard it would be to modify or create an xhamster template that only retrieves new galleries from a specific user. My thought would be to automate it and run it every X minutes to get new galleries only. Possible, could someone point me in the right direction? I might be as simple as telling the template to only get files newer than XYZ. Thanks and I hope someone has info regarding this.

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

Re: Xhamster - get specific users new galleries only

Post by Xaver Schmidt » 24 Feb 2020, 18:59

I cannot help you, but maybe you can help me:
The current template for downloading all favorite galleries:
https://xhamster.com/users/USERNAME/favorites/photos
isn't working correctly (any longer).
Do you have a modified template which does?
Thanks in advance!

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

Re: Xhamster - get specific users new galleries only

Post by Maxim » 24 Feb 2020, 19:12

What exactly is wrong with that template? Does it download zero photos? Does it download incorrect photos? If you give me maximum details with URLs - I''ll help you.

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

Re: Xhamster - get specific users new galleries only

Post by Xaver Schmidt » 24 Feb 2020, 19:33

Hello!
Maybe you can try yourself. This user has 68 Pages of favorites. But when I use the template it only downloads 12 galleries, and not even completely.
https://xhamster.com/users/schornie/favorites/photos.
It doesn't even download all galleries from page 1.

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

Re: Xhamster - get specific users new galleries only

Post by Xaver Schmidt » 25 Feb 2020, 11:25

I try to describe in words how the template could work correctly.

In the example we have these gallery thumbnail pages:
https://xhamster.com/users/schornie/favorites/photos
https://xhamster.com/users/schornie/favorites/photos/2
https://xhamster.com/users/schornie/favorites/photos/3
goes up to page 68.

On each of these pages there are 60 example thumbnails. Each one represents a gallery we want to download. Sometimes only one example per gallery, sometimes more than one.

If we click on a thumbnail, a new page with the picture is opened. In this example we click on the gallery thumbnail of SHE DEVILS. The link is
https://xhamster.com/photos/gallery/7062497/132571601

On this new page we see the thumbnail picture in normal size and right above this picture we see a link called
< back to gallery:
https://xhamster.com/photos/gallery/she ... 7062497/20

If we now use this link with the template 'xhamster.com - gallery template', the whole gallery will be downloaded.

Now, this procedure is what template 'xhamster.com - all favorite galleries from selected user' should do for each thumbnail: A combination of the above steps + what 'xhamster.com - gallery template' does.


There is one problem, though:
On the page behind a thumbnail such as https://xhamster.com/photos/gallery/7062497/132571601 there are many gallery links, and the template needs to find the right one:
The right one is the first gallery link from the top in the page source. This is what the template has to look for.

Hope this helps.

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

Re: Xhamster - get specific users new galleries only

Post by Maxim » 25 Feb 2020, 12:11

Well, that's not how I see it and not how it's intended to be. If a link from user's favorite page leads to a single photo page - it means that user added to favorites a single photo and Extreme Picture Finder downloads that single photo (even if this photo is a part of gallery). And when user adds to favorites entire gallery, then the link from the favorites page goes to the gallery page and in this case Extreme Picture Finder saves entire gallery.

So it works exactly as it should.

And yes, I think Extreme Picture Finder can also work the way you want it with additional configuration effort.

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

Re: Xhamster - get specific users new galleries only

Post by Xaver Schmidt » 25 Feb 2020, 12:47

Oh, sorry that I misunderstood this. I see that you are right.
It was just because I saw that 12 galleries were actually downloaded to folders with the gallery's names.

But can you tell me what to do to make it work?
Modify something here?
(?si)1000\.jpe?g$
(?si)1000\.pn.$
(?si)1000\.gif$
^https://xhamster.com/photos/gallery/[^/\?&#]+-\d+(/\d+)?$
^https://xhamster.com/users/[^/]+/favorites/photos/?(\d+)?$

Thank you for your help!

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

Re: Xhamster - get specific users new galleries only

Post by Xaver Schmidt » 26 Feb 2020, 14:09

Hello!
Thank you for your PM.
But I found an easier way myself which I posted in a new topic, so that every user who is interested in downloading galleries behind a user's favorite photos, will be able to do this.

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

Re: Xhamster - get specific users new galleries only

Post by Maxim » 26 Feb 2020, 14:30

Great job Xaver! That's what I love to see!

Post Reply