JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 15.01.2020, 18:24
BJN01 BJN01 is offline
JD Adviser
 
Join Date: Jan 2020
Posts: 113
Default [Link crawler rule] request : decryter for "ptscans"

Hello ,
I would like to ask for a function / plugin / decrypter to download images from ptscans (something similar to the decrypter of other manga sites)


link examples:

initial pag
**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**
chapter
**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
  #2  
Old 20.01.2020, 01:53
BJN01 BJN01 is offline
JD Adviser
 
Join Date: Jan 2020
Posts: 113
Default

I did some tests ... without success . But I found a procedure that works:


initial pag : **External links are only visible to Support Staff****External links are only visible to Support Staff**
chapter es: **External links are only visible to Support Staff****External links are only visible to Support Staff**

doing some research i found that file

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

if I "paste" this link JD finds me all the images I need (but I have to tell him to put them all in one package)

now I need to know how / what to write in the class to say:

<< if links from the site are like
**External links are only visible to Support Staff****External links are only visible to Support Staff**

parse the "X" file you find
**External links are only visible to Support Staff****External links are only visible to Support Staff**

and put everything in a package called based on some values ​​found in the file just analyzed ( es "issueNumber": XXX.X, "title": "Chapter XX" --> XXX.X - Chapter XX) >>

any help? please
Reply With Quote
  #3  
Old 20.01.2020, 19:54
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Hi,
a plugin for this website is not required as it contains direct-URLs which can be added via linkcrawler rules.

-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?
Reply With Quote
  #4  
Old 20.01.2020, 22:37
BJN01 BJN01 is offline
JD Adviser
 
Join Date: Jan 2020
Posts: 113
Question

I apologize if I still disturb you, but I can't understand how to use the linkcrawler

from what I understand I should copy something similar to
https://board.jdownloader.org/showthread.php?t=74150
Code:
[ {
"enabled": true,
"maxDecryptDepth": 0,
"name": "ptscan",
"pattern": "https?://(?:www\.)?read.ptscans.com/read/[:alpha:-]+"
"rule": "DEEPDECRYPT",
"packageNamePattern": null,
"deepPattern": null
} ]
but


1) where do I paste the string I need?
in the linkgrabber if I do "add" I see this window
https://board.jdownloader.org/attach...1&d=1579550513

2) how do I write the rule
"to the copied link add </manifest.json> and analyze it" ??

3)"packageNamePattern" --->
how do I tell him "the name is in the manifest.json file"?
Attached Images
File Type: png crawler.png (213.1 KB, 3 views)
Reply With Quote
  #5  
Old 21.01.2020, 01:07
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Go to Settings --> Advanced Settings --> Search for "link crawler rules" --> Replace what's in there with this:
Code:
[ {
  "enabled" : true,
  "maxDecryptDepth" : 1,
  "name" : "ptscans2",
  "pattern" : "**External links are only visible to Support Staff**,
  "rule" : "DEEPDECRYPT",
  "packageNamePattern" : "\"title\": \"(.*?)\"",
  "deepPattern" : "(http.+\\.png)"
},{
  "enabled" : true,
  "maxDecryptDepth" : 1,
  "name" : "ptscans1",
  "pattern" : "**External links are only visible to Support Staff**,
  "rule" : "DEEPDECRYPT",
  "deepPattern" : "(http.+\\.json)"
} ]
-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?
Reply With Quote
  #6  
Old 21.01.2020, 18:32
BJN01 BJN01 is offline
JD Adviser
 
Join Date: Jan 2020
Posts: 113
Default

THANK YOU !
I managed to paste it in the queue to what was already there ["stuff" not made by me, therefore reliable].

restarted JD
- the pc has not exploded
- if I copy the links it does what I hoped for!

thank you again !

that's fine for my needs, I keep it like this !
but last curiosity, for the package name you used :
Code:
"packageNamePattern" : "\"title\": \"(.*?)\"",
going to link to the value "title" , if I want to add another value what should I write? something similar to :

Code:
"packageNamePattern" : "\"title\": \"(.*?)\"+\"subtitle\": \"(.*?)\"",

p.s= you can mark the discussion as resolved / closed / OK
Reply With Quote
  #7  
Old 21.01.2020, 19:13
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Thanks for your feedback!

You can simply pick a packagename via RegEx.
Please keep in mind that it has to be inside the current crawler html - in this case inside the .json but as I can see you already understood that.
The following should do the job:
Code:
"packageNamePattern" : "\"subtitle\": \"(.*?)\"",
-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; 21.01.2020 at 19:13. Reason: Fixed typo
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 23:29.
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.