JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 15.03.2024, 12:39
verheiratet1952 verheiratet1952 is offline
JD VIP
 
Join Date: Jan 2016
Posts: 325
Default pattern config for more better linkcrawler rule

for now I am using this and it works fine

Code:
  "name"               : null,
  "packageNamePattern" : "<title>(.+)</title>",
  "passwordPattern"    : null,
  "pattern"            : "**External links are only visible to Support Staff**,
but there are some more links with for example other naming than .../category/

**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**

how to change pattern to make all those additional links also work with this single linkcrawler rule?


plus:

as you can see I am using title for packageNamePattern how to add before or after title the exact letters from

../category/
../anothercategory/
../category2nd/
../cat-third/


(...have a nice weekend)
Reply With Quote
  #2  
Old 15.03.2024, 12:41
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,044
Default

1. We can't help without read life examples.
2. Learn regex here: regex101.com.
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #3  
Old 15.03.2024, 12:59
verheiratet1952 verheiratet1952 is offline
JD VIP
 
Join Date: Jan 2016
Posts: 325
Default

Quote:
Originally Posted by pspzockerscene View Post
1. We can't help without read life examples.
2. Learn regex here: regex101.com.

here you are:

**External links are only visible to Support Staff****External links are only visible to Support Staff**

**External links are only visible to Support Staff****External links are only visible to Support Staff**

**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #4  
Old 15.03.2024, 13:08
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,044
Default

I'll provide one regular expression for this link for you. You will need to learn the rest yourself.
Code:
https?://[^/]+/sex-anzeigen/[a-z0-9\\-]+/[a-z0-9\\-]+-[0-9]+$
Raw:
pastebin.com/raw/1ApJC8tc

--> See regex101.com
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #5  
Old 15.03.2024, 20:43
verheiratet1952 verheiratet1952 is offline
JD VIP
 
Join Date: Jan 2016
Posts: 325
Default

Quote:
Originally Posted by pspzockerscene View Post
I'll provide one regular expression for this link for you. You will need to learn the rest yourself.
Code:
https?://[^/]+/sex-anzeigen/[a-z0-9\\-]+/[a-z0-9\\-]+-[0-9]+$
Raw:
pastebin.com/raw/1ApJC8tc

--> See regex101.com

thank you very much!



how to add some part of url slug to folder name where I use <title> </title>?


(by the way: to add filetype with <jd:append> using packagizer is great...)
Reply With Quote
  #6  
Old 15.03.2024, 21:12
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

@verheiratet1952: for that I'd recommend using the packagizer and create a rule that parses the wanted slug from url and add/set package name.
You want to use slug as package name or sort of combination of both?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 16.03.2024, 01:14
verheiratet1952 verheiratet1952 is offline
JD VIP
 
Join Date: Jan 2016
Posts: 325
Default

Quote:
Originally Posted by Jiaz View Post
@verheiratet1952: for that I'd recommend using the packagizer and create a rule that parses the wanted slug from url and add/set package name.
You want to use slug as package name or sort of combination of both?

Code:
  "packageNamePattern" : "<title>(.+)</title>",
a sort of combination of both...

if not using some PHP parser with JSON, but using JD it is nice to have everything I need inside folder name...

for example:
**External links are only visible to Support Staff****External links are only visible to Support Staff**

packageNamePattern should be

title+digits at the end
or
title+url slug part

or to play around with h1 instead of title or whatever... being more flexible with packageNamePattern...


is there any variables given to parse url slug?
( with varibale I talk about something like <jd:append> )
Reply With Quote
  #8  
Old 18.03.2024, 13:44
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

@verheiratet1952: I would recommend to use pattern for sourceURL and then build the package name manually. or use packageNamePattern and then use append to add information from sourceURL matches.
Code:
sourceURL - contains - https?://[^/]*ladies.de/[^/]*/[^/]*/[^/]*-(\d+)

set sourceURL: <jd:source:1>
__________________
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 05:12.
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.