JDownloader Community - Appwork GmbH
 

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 21.02.2016, 19:42
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,452
Default Link Crawler Rules - not work for me!

What wrong?

Code:
[ {
"enabled" : true,
"pattern" : "*.?((\d+)$)|(/page-(\d+)$)|(\?page=(\d+)\&)|(/page/(\d+)/$)|(/page(\d+)$)|(/page/(\d+)\?)|(/page(\d+)/)|(\?PageNo=(\d+))|(\?paged=(\d+))|(/page/(\d+)$)|(\?st=(\d+))|(\&s=(\d+)+)|(\&p=(\d+))|(\&cat=(\d+))|(/(\d+)+)|(\&start=(\d+)",
"rule" : "DEEPDECRYPT"
} ]
  #2  
Old 21.02.2016, 20:16
Lram32's Avatar
Lram32 Lram32 is offline
Spanish Supporter
 
Join Date: Jul 2012
Location: Dark side of the moon
Posts: 9,915
Default

Who knows.
Without example links is hard to know.
Maybe you need vacations again?
__________________
» Setup JD2 / Instalador de JD2 «
Spoiler:

Installer for Windows XP/Vista/Seven/Eight
|| JD2 x86 - x64 (Beta) ||

Installer for Mac
|| JD2 (Beta) ||

Installers for Linux
|| JD2 (Beta) x86 || <---> || JD2 (Beta) x64 ||

How to Create a Log
-» Click Here «-


¿Cómo crear un registro?
-» Click Aquí «-


Support Chat / Chat de Soporte
-» Click Here / Click Aquí «-


  #3  
Old 21.02.2016, 20:48
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,452
Default

Lram32 - You have given me many bans already, maybe this time you calm down?

do not understand that this regex for each "Multipage"
  #4  
Old 21.02.2016, 20:52
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,452
Default

Jiaz - In the place of the actual page number use the sub expresion (\d+).
e.g. website\.com/galleries/(*)/page(\d+).html$
  #5  
Old 22.02.2016, 00:15
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,195
Default

once again regex is wrong, * is not a wildcard its a repeat factor
period is the wildcard factor, so it should look like .*

please learn regex, please use regex testing software like regex buddy or regex testing websites like regex101.com

raztoki
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
  #6  
Old 22.02.2016, 11:03
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,452
Default

https://board.jdownloader.org/showpo...10&postcount=5

and does not work for me, the rules are for me here incomprehensible.

I do not have to use RegexBuddy,
when RegEx works for me well for me!(at least in many applications or editors that I use.), but not here ....
I'm done!
  #7  
Old 22.02.2016, 11:23
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,452
Default

Regex work for me but not work JD2

MINI-example:

flickr\.com/photos/(.*)/page(\d+)/\?details\=1
/t(\d+)p(\d+)\-
/Details\.aspx\?id=(\d+)&start=(\d+)
rule34\.paheal\.net/post/list/(.*)/(\d+)$
\&start=(\d+)
\&page=(\d+)$
\?page=(\d+)$
/page-(\d+)$
\?page=(\d+)\&
/page/(\d+)/$
/page(\d+)$
/page/(\d+)\?
/page(\d+)/
\?PageNo=(\d+)
\?paged=(\d+)
/page/(\d+)$
\?st=(\d+)
\&s=(\d+)+
\&p=(\d+)
\&cat=(\d+)
  #8  
Old 22.02.2016, 11:35
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,320
Default

And what exactly does not work with those regex?
(\d+)+ is invalid
__________________
JD-Dev & Server-Admin
  #9  
Old 22.02.2016, 14:04
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,452
Default

\?page=(\d+)\&

Invalid regex ? No , no, no, and no!
  #10  
Old 22.02.2016, 14:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,320
Default

(\d+)+ is invalid
you talk about a complete different regex
__________________
JD-Dev & Server-Admin
  #11  
Old 22.02.2016, 14:09
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,452
Default

Quote:
(\d+)+ is invalid
okay, other regex are good?
  #12  
Old 22.02.2016, 14:13
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,452
Default

Jiaz - how to JOIN all the regex?

.....(regex1)|(regex2)|(regex3)

..... <== at the beginning???
  #13  
Old 22.02.2016, 14:23
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,452
Default

regex is working for me, I do not know how to mix complex regex, so I asked for a "regex the Lines"


**External links are only visible to Support Staff****External links are only visible to Support Staff**
Attached Thumbnails
Screen_Shot_02_22_16_at_02_17_PM.jpg  

Last edited by raztoki; 23.02.2016 at 07:55.
  #14  
Old 22.02.2016, 14:36
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,452
Default

Note: The join of thousands of regex is not easy. There may be undefined errors!!!
  #15  
Old 22.02.2016, 16:27
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,195
Default

pattern1|pattern2|pattern3

No need to use () brackets unless you need those features that brackets provide.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
  #16  
Old 22.02.2016, 16:42
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,452
Default

still not wor for me

error:is not a valid 'java.util.List<jd.controlling.LinkCrawlerRuleStorable>
  #17  
Old 22.02.2016, 16:51
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,320
Default

please show the rule you try to paste
__________________
JD-Dev & Server-Admin
  #18  
Old 22.02.2016, 16:52
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,452
Default

[ {
"enabled" : true,
"maxDecryptDepth" : 1,
"id" : 1454334584729,
"name" : null,
"pattern" : "/(\d+)\.cfm",
"rule" : null
} ]
  #19  
Old 22.02.2016, 16:53
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,452
Default

or

[ {
"enabled" : true,
"pattern" : "/(\d+)\.cfm",
"rule" : "DEEPDECRYPT"
} ]
  #20  
Old 22.02.2016, 16:57
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,320
Default

first rule, missing rule
and you need to escape \ -> \\
__________________
JD-Dev & Server-Admin
Closed Thread

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 16:25.
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 - 2020, Jelsoft Enterprises Ltd.