JDownloader Community - Appwork GmbH
 

Go Back   JDownloader Community - Appwork GmbH > English Support > General Discussion
Reply
 
Thread Tools Display Modes
  #1  
Old 05.08.2021, 19:31
denylx denylx is offline
JD Beta
 
Join Date: Aug 2019
Posts: 59
Default Login to a board via cookies not working

I'm trying to log in to this board - **External links are only visible to Support Staff****External links are only visible to Support Staff**
and download some images from this **External links are only visible to Support Staff****External links are only visible to Support Staff**

I tried this linkcrawler rule-

Code:
[
  {
    "enabled": true,
    "cookies": [
      [
        "ext_name",
        "value"
      ]
    ],
    "updateCookies": true,
    "logging": false,
    "maxDecryptDepth": 1,
    "name": "rule copp.com",
    "pattern": "**External links are only visible to Support Staff**,
    "rule": "DIRECTHTTP"
  }
]
I think I'm using the wrong cookie login value for this board or something since this rule does not seem to be working. Pls help.
Reply With Quote
  #2  
Old 06.08.2021, 11:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,563
Default

your pattern is missing the www
try
Quote:
https?://(\\w+\\.)?.....
also the pattern must fully match, so .* at the end

pastebin.com/sZjXeeeA
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 06.08.2021 at 11:11.
Reply With Quote
  #3  
Old 06.08.2021, 11:31
denylx denylx is offline
JD Beta
 
Join Date: Aug 2019
Posts: 59
Default

Quote:
Originally Posted by Jiaz View Post
your pattern is missing the www
try

also the pattern must fully match, so .* at the end

pastebin.com/sZjXeeeA
Thanks Jiaz this worked. Also another question...how did I use multiple sites within linkcrawler rules similar to this one?

I tried to pasting another rule within linkcrawler box but it did not seem to accept it.
Reply With Quote
  #4  
Old 06.08.2021, 11:43
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,563
Default

@denylx: Syntax ist JSON
Quote:
[
{rule1}
,
{rule2}
,
{rule3}
]
You can verify JSON , eg via jsonformatter.org/json-pretty-print
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 06.08.2021, 11:58
denylx denylx is offline
JD Beta
 
Join Date: Aug 2019
Posts: 59
Default

Quote:
Originally Posted by Jiaz View Post
@denylx: Syntax ist JSON

You can verify JSON , eg via jsonformatter.org/json-pretty-print
Thank you
Reply With Quote
  #6  
Old 06.08.2021, 12:54
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,563
Default

You're welcome
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 06.08.2021, 13:09
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

Quote:
Originally Posted by denylx View Post
Also another question...how did I use multiple sites within linkcrawler rules similar to this one?
I've updated our LinkCrawler Rules overview article to contain two rules in one json structure by default.

-psp-
__________________
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?

Last edited by pspzockerscene; 06.08.2021 at 13:24.
Reply With Quote
  #8  
Old 06.08.2021, 13:12
denylx denylx is offline
JD Beta
 
Join Date: Aug 2019
Posts: 59
Default

Quote:
Originally Posted by pspzockerscene View Post
I've updated our **External links are only visible to Support Staff**... to contain trwo rules in one json structure by default.

-psp-
Much appreciated
Reply With Quote
  #9  
Old 08.01.2024, 16:44
denylx denylx is offline
JD Beta
 
Join Date: Aug 2019
Posts: 59
Default

Trying to get some images off this forum thread: **External links are only visible to Support Staff****External links are only visible to Support Staff**

Tried this linkcrawler rule but can't seem it get it to work. Help appreciated.

Code:
[{
  "cookies"            : [
                          [
                           "xf_user",
                           "zxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxz"
                          ]
                         ],
  "deepPattern"        : null,
  "formPattern"        : null,
  "id"                 : 1404728103413,
  "maxDecryptDepth"    : 1,
  "name"               : "rule 2",
  "packageNamePattern" : null,
  "passwordPattern"    : null,
  "pattern"            : "**External links are only visible to Support Staff**,
  "rewriteReplaceWith" : null,
  "rule"               : "DIRECTHTTP",
  "enabled"            : true,
  "logging"            : false,
  "updateCookies"      : true
 }
]
Reply With Quote
  #10  
Old 09.01.2024, 12:41
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

Already I can see that at least youre pattern is wrong.
Look at those links again:
Code:
titsintops.com/phpBB2/index.php?attachments/bla.1234567890/
__________________
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
  #11  
Old 09.01.2024, 13:11
denylx denylx is offline
JD Beta
 
Join Date: Aug 2019
Posts: 59
Default

Quote:
Originally Posted by pspzockerscene View Post
Already I can see that at least youre pattern is wrong.
Look at those links again:
Code:
titsintops.com/phpBB2/index.php?attachments/bla.1234567890/
I'm sorry.. what should be the correct pattern then?
Reply With Quote
  #12  
Old 09.01.2024, 13:13
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

Please at least try it yourself - this feature is ment to be used by our users; we're not here to create rules for our users...
__________________
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
  #13  
Old 09.01.2024, 14:08
denylx denylx is offline
JD Beta
 
Join Date: Aug 2019
Posts: 59
Default

Quote:
Originally Posted by pspzockerscene View Post
Please at least try it yourself - this feature is ment to be used by our users; we're not here to create rules for our users...
Code:
pattern: "**External links are only visible to Support Staff**
I tried it with the above but its throwing some kind of error.
Reply With Quote
  #14  
Old 09.01.2024, 14:31
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

The following rule matches the URLs.
I can't test it because I do not have login credentials for this website so you will need to find the needed cookies on your own.
Rule:
Code:
[
  {
    "cookies": [
      [
        "xf_user",
        "zxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxz"
      ]
    ],
    "deepPattern": null,
    "formPattern": null,
    "maxDecryptDepth": 1,
    "name": "rule for downloading attachments from titsintops.com",
    "packageNamePattern": null,
    "passwordPattern": null,
    "pattern": "**External links are only visible to Support Staff**,
    "rewriteReplaceWith": null,
    "rule": "DIRECTHTTP",
    "enabled": true,
    "logging": false,
    "updateCookies": true
  }
]
Rule on pastebin as plaintext:
pastebin.com/raw/aeuZbRts
__________________
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
  #15  
Old 09.01.2024, 14:44
denylx denylx is offline
JD Beta
 
Join Date: Aug 2019
Posts: 59
Default

Thanks.. that works but what was wrong with with ".*" ?
I thought it was meant to match and capture all after the /
Reply With Quote
  #16  
Old 09.01.2024, 14:52
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

Nothing. You were missing the \\ (double backslash for escaping in json).
__________________
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
Reply


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 14:13.
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.