File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 453453 "bookCoverSelector" : " .novel-featureimg img" ,
454454 "bookAuthorSelector" : " " ,
455455 "bookSubjectSelector" : " .novel-tags"
456+ },
457+
458+ "ScribbleHub" : {
459+ "url" : " https://scribblehub.com/" ,
460+ "ordinalIndexForBaseNovel" : " 5" ,
461+ "chapterLinkSelector" : " a.toc_a" ,
462+ "chapterContainer" : " #chp_raw" ,
463+ "blacklistedTags" : [
464+ " null"
465+ ],
466+ "bookTitleSelector" : " .fic_title" ,
467+ "bookDescSelector" : " .wi_fic_desc" ,
468+ "bookCoverSelector" : " .fic_image img" ,
469+ "bookAuthorSelector" : " .auth_name_fic" ,
470+ "bookSubjectSelector" : " .wi_fic_genre a"
456471 }
457472}
Original file line number Diff line number Diff line change @@ -70,6 +70,9 @@ public static void getList(Novel novel) {
7070 case "https://foxaholic.com/" :
7171 novel .chapters = ChapterLists .foxaholic (novel );
7272 break ;
73+ case "https://scribblehub.com/" :
74+ novel .chapters = ChapterLists .scribblehub (novel );
75+ break ;
7376 default :
7477 novel .chapters = ChapterLists .defaults (novel );
7578 break ;
@@ -79,6 +82,15 @@ public static void getList(Novel novel) {
7982 }
8083 }
8184
85+ private static List <Chapter > scribblehub (Novel novel ) throws IOException {
86+ novel .tableOfContent = Jsoup .connect (novel .novelLink ).cookie ("toc_show" ,"9999" ).timeout (30 * 1000 ).get ();
87+ List <Chapter > chapters = new ArrayList <>();
88+ for (Element chapterLink : novel .tableOfContent .select (novel .host .chapterLinkSelector )) {
89+ chapters .add (new Chapter (chapterLink .text (), chapterLink .attr ("abs:href" )));
90+ }
91+ return chapters ;
92+ }
93+
8294 private static List <Chapter > creativenovels (Novel novel ) throws IOException {
8395 novel .tableOfContent = Jsoup .connect (novel .novelLink ).timeout (30 * 1000 ).get ();
8496 Connection .Response res = Jsoup .connect ("https://creativenovels.com/wp-admin/admin-ajax.php" )
You can’t perform that action at this time.
0 commit comments