JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 06.04.2024, 23:10
Renis Renis is offline
Modem User
 
Join Date: Mar 2024
Posts: 4
Default Help with linkcrawler rule for chichi-pui.com

Hello,

So this website is making me scratch my head. I have managed to make a deepdecrypt rule to extract only the image links on the page. Problem is that there are a lot of recommended posts and other links on the same page which I don't want to download.
The image links contain a part of the post id, see examples bellow.
Is there a way to match part of the download url with a part of the source url to only add the matching image links to linkgrabber?
Some guidance would be appreciated.

Source URL example:
**External links are only visible to Support Staff****External links are only visible to Support Staff**21df40ac-a316-4121-8271-e93676e1ab0e/

Download URL example:
**External links are only visible to Support Staff****External links are only visible to Support Staff**21df40ac-a316-4121-8271-e93676e1ab0e/543ed2c2-09e8-4f56-919c-4fb363d5cc5e_1200x.jpeg

Linkcrawler rule:
{
"cookies" : [],
"deepPattern" : "(**External links are only visible to Support Staff**,
"formPattern" : null,
"id" : 1711990256214,
"maxDecryptDepth" : 0,
"name" : "chichi",
"packageNamePattern" : "<title>(.*?)</title>",
"passwordPattern" : null,
"pattern" : "https?://www\\.chichi-pui\\.com/posts/(.+)/",
"rewriteReplaceWith" : null,
"rule" : "DEEPDECRYPT",
"enabled" : true,
"logging" : false,
"updateCookies" : false
}

I also have a packagizer rule to make packages based on this post id.
Reply With Quote
  #2  
Old 07.04.2024, 13:09
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 80,411
Default

@Renis: there are two ideas that should work:
1.) extend deepPattern that it looks for
Quote:
class="image-posts-detail-multiple-image__image"
for example
Code:
...\"[^>]*image-posts-detail-multiple-image__image
or
2.) start with matching for
Quote:
class="image-posts-detail-multiple-image__container"
That way you only get/match those images from the post and not other uploaded images
In case you need help/are stuck, just let us know!
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 07.04.2024 at 22:09.
Reply With Quote
  #3  
Old 07.04.2024, 22:05
Renis Renis is offline
Modem User
 
Join Date: Mar 2024
Posts: 4
Default

Thanks! The deeppattern you suggested worked perfectly when I removed one of the quotation marks. Got an error when I had both.
Reply With Quote
  #4  
Old 07.04.2024, 22:10
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 80,411
Default

@Renis: Thanks for the feedback and yes, I guess it got sneaked in Glad to hear that it worked
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 10:28.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.