import sys
sys.path.append('.')

from novels.core.epub_make import *

# change the username='', password='' in novels.core.epub_ln.py with lightnovel.cn account
# Run codes like example.py

#uris = input('Uris are:\n').split(',')
#print(uris)
uris = [
    'https://www.lightnovel.cn/thread-851399-1-1.html',
    'https://www.lightnovel.cn/thread-854147-1-1.html',
    'https://www.lightnovel.cn/thread-856863-1-1.html',
    'https://www.lightnovel.cn/thread-860874-1-1.html',
    'https://www.lightnovel.cn/thread-863922-1-1.html',
    'https://www.lightnovel.cn/thread-866783-1-1.html',
]
epub_make(uris, book_title='琉外传', chapter_check=False)
import sys
sys.path.append('.')

from novels.core.epub_make import *

# change the username='', password='' in novels.core.epub_ln.py with lightnovel.cn account
# Run codes like example.py

chapter_pattern = '(第\s{0,3}?' + re_number + '\s{0,3}?[章话节]《.+?》)|(尾声)|(后记)|(序章)|(EX.+?)'
cl = '(?<=\s)(第' + re_number + '章.+)|(CONTENTS)|(后记)|(序章)(?=<)'
cl2 = '(?<=\s)\d(?=<)'

url = 'https://www.lightnovel.cn/forum.php?mod=viewthread&tid=994495&page=1&authorid=424181'
epub_make(uris=[url],
          book_title='16',
          chapter_check=True,
          chapter_pattern=cl,
          second_check=True,
          second_pattern=cl2)
Exemplo n.º 3
0
    'https://tieba.baidu.com/p/6243503176',
    'https://tieba.baidu.com/p/6243656268',
    'https://tieba.baidu.com/p/6243661656',
    'https://tieba.baidu.com/p/6243670221',
    'https://tieba.baidu.com/p/6243077208',
    'https://tieba.baidu.com/p/6243444858',
    'https://tieba.baidu.com/p/6245046038',     #487
]

uris = file + urls

epub_make(uris, time_stamp=False)

'''

file = '/Volumes/Storage/Mine/Novels/龙峰之足/龙峰之足 Web.epub'
url = 'https://masiro.moe/forum.php?mod=forumdisplay&fid=66'
m = MasiroList(url)

local_date = datetime.fromtimestamp(os.path.getmtime(file)).date()
print('local date: ', local_date)

title, list = m.getList()
new_list = []
for link, title, date in list:
    if date > local_date:
        new_list.append(link)

if new_list != []:
    epub_make([file] + new_list, time_stamp=False)
Exemplo n.º 4
0
import sys

sys.path.append('.')

from novels.core.epub_make import *

sp = '(?<=>)\s*?(\d{1,2})\s*?(?=<)'
download_path = '/Volumes/Storage/Downloads/'
'''
# Epub Make
uris = ['https://www.lightnovel.cn/forum.php?mod=viewthread&tid=940611&page=1&authorid=981224',]
epub_make(uris,book_title='Extra 让笨蛋登上舞台吧 1', chapter_check=True, second_check=True, second_pattern=sp)

# Epub Make
uris = ['https://www.lightnovel.cn/forum.php?mod=viewthread&tid=961756&page=1&authorid=981224',]
epub_make(uris,book_title='Extra 让笨蛋登上舞台吧 2', chapter_check=True, second_check=True, second_pattern=sp)

# Epub Make
uris = ['https://www.lightnovel.cn/forum.php?mod=viewthread&tid=890665&page=1&authorid=851136',]
sp1 = '(?<=>)\s*?(\d\.)\s*?(?=<)'
#epub_make(uris,book_title=convert_chinese('一季动画BD特典1‧~為白虎奉上加護~'), chapter_check=True, chapter_pattern=sp1)

#epub_make('https://www.lightnovel.cn/thread-895669-1-1.html', convert_chinese('一季动画BD特典2‧阿克塞爾的爆裂偵探'), chapter_check=True, chapter_pattern=sp)

cp1 = convert_chinese('^((屠龍者惠惠)|(藝術就是爆裂)|(紅瞳的初學者殺手)|(偶爾來次這樣的爆裂約會)|(開膛手惠惠))(?=<)')
epub_make('https://www.lightnovel.cn/forum.php?mod=viewthread&tid=888365&page=1&authorid=851136', book_title='九卷台版特典', chapter_check=True, chapter_pattern=cp1)

cp2 = convert_chinese('(吉祥物的真面目……)|(惡魔的禁書)|(VS!)|(紅魔族的抑制力)|(少女的價值在於……)|(阿克塞爾第一的……)')
#epub_make('https://www.lightnovel.cn/forum.php?mod=viewthread&tid=900371&page=1&authorid=851136', book_title=convert_chinese('續‧為美好的世界獻上爆炎!台版首刷特典'), chapter_check=True, chapter_pattern=cp2)

import sys
sys.path.append('.')

from novels.core.epub_make import *

# Epub Append
file = [
    '/Volumes/Storage/Mine/Novels/Re:从零开始的异世界生活/Web/Web 第六章.epub',
]

urls = []

uris = file + [bd_see_lz(url) for url in urls]

epub_make(uris, chapter_check=False)
import sys
sys.path.append('.')

from novels.core.epub_make import *

chapter_pattern = '◆[^◆]{0,10}◆'

uris = 'https://tieba.baidu.com/p/6096449622?see_lz=1',  # 11
epub_make(uris,
          book_title='第11卷漫画附录小说 暴风龙日记',
          chapter_check=True,
          chapter_pattern=chapter_pattern)
Exemplo n.º 7
0
import sys
sys.path.append('.')

from novels.core.epub_make import *

# change the username='', password='' in novels.core.epub_ln.py with lightnovel.cn account
# Run codes like example.py

chapter_pattern = '(第\s{0,3}?' + re_number + '\s{0,3}?[章话节]《.+?》)|(尾声)|(后记)|(序章)|(EX.+?)'

urls = [
    'https://masiro.moe/forum.php?mod=viewthread&tid=6223&page=1&authorid=7727'
]
epub_make(uris=urls,
          book_title='16',
          chapter_check=True,
          chapter_pattern=chapter_pattern)
    'http://tieba.baidu.com/p/6047348249',      # 520
    'http://tieba.baidu.com/p/6048513989',      # 521
    'https://tieba.baidu.com/p/6073368786?see_lz=1',    # 522
    'https://tieba.baidu.com/p/6073579756?see_lz=1',    # 523
    'https://tieba.baidu.com/p/6073727589?see_lz=1',    # 524
    'https://tieba.baidu.com/p/6074518850?see_lz=1',    # 525
    'https://tieba.baidu.com/p/6074677781?see_lz=1',    # 526
    'https://tieba.baidu.com/p/6081506442?see_lz=1',    # 527
    'https://tieba.baidu.com/p/6081611286?see_lz=1',    # 528
    'https://tieba.baidu.com/p/6083166513',             # 529
    'https://tieba.baidu.com/p/6086881191',             # 530
    'https://tieba.baidu.com/p/6086947769?see_lz=1',    # 531
    'https://tieba.baidu.com/p/6090251353?see_lz=1',    # 532
    'https://tieba.baidu.com/p/6090345451?see_lz=1',    # 533
    'https://tieba.baidu.com/p/6113224065',             # 534
    'https://tieba.baidu.com/p/6113224065',         # 534
    'https://tieba.baidu.com/p/6122617138',  # 535
    'https://tieba.baidu.com/p/6122897696',  # 536
    'https://tieba.baidu.com/p/6122964366',  # 537
    'https://tieba.baidu.com/p/6126862838',  # 538
    'https://tieba.baidu.com/p/6127005861',  # 539
    'https://tieba.baidu.com/p/6139231568?see_lz=1',    # 540
    'https://tieba.baidu.com/p/6147345339',         # 541
]

uris = [file] + [bd_see_lz(url) for url in urls]

#epub_make(uris=uris, book_title='盾之勇者成名路 Web', chapter_check=True, chapter_pattern=chapter_pattern, time_stamp=False)

epub_make(uris=uris, book_title='盾之勇者成名路 Web', chapter_check=False, time_stamp=False)
import sys
sys.path.append('.')

from novels.core.epub_make import *

# change the username='', password='' in novels.core.epub_ln.py with lightnovel.cn account
# Run codes like example.py

uris = [
    'https://tieba.baidu.com/p/5987991481',
    'https://tieba.baidu.com/p/6006530874?see_lz=1'
]
epub_make(uris, book_title='14', chapter_check=True)
import sys
sys.path.append('.')

from novels.core.epub_make import *

# change the username='', password='' in novels.core.epub_ln.py with lightnovel.cn account
# Run codes like example.py

#uris = input('Uris are:\n').split(',')
#print(uris)
'''
uris = [
    'https://tieba.baidu.com/p/5972159545',     #   序章
    'https://tieba.baidu.com/p/6051288645',     #   1
]

chapter_pattern = '((第\s{0,3}?'+re_number+'{1,3}?\s{0,3}?章)|(尾声)|(后记)|(序章)).*?(?=<)'

second_pattern = '(第'+re_number+'{1,3}?节).*?(?=<)'

epub_make(uris, book_title='07', chapter_check=True, chapter_pattern=chapter_pattern, second_pattern=second_pattern)
'''

uris = ['https://tieba.baidu.com/p/6115629129']

chapter_pattern = '((第' + re_number + '章.*?)|(Prologue)|(Epilogue)|(角色介绍)|(后记))(?=<)'

epub_make(uris,
          book_title='【BD附赠特典】OVERLORD——亡国的吸血姬',
          chapter_check=True,
          chapter_pattern=chapter_pattern)
Exemplo n.º 11
0
import sys

sys.path.append('.')

from novels.core.epub_make import *

# Epub Make
uris = [
    'https://www.lightnovel.cn/forum.php?mod=viewthread&tid=957796&page=1&authorid=851136',
]

download_path = '/Volumes/Storage/Downloads/'
epub_make(uris, book_title='续·爆炎!2 任性妄为破坏者', chapter_check=True)
Exemplo n.º 12
0
import sys
sys.path.append('.')

from novels.core.epub_make import *

# Epub Append
folder = '/Volumes/Storage/Mine/Novels/骑士&魔法/'
file = get_file_path(folder)
urls = [
    'https://tieba.baidu.com/p/6126554456',  # 157
    'https://tieba.baidu.com/p/6215925595',  # 158
]

urls = 'https://tieba.baidu.com/p/6252042876'  #159

if type(urls) is list:
    uris = [file] + [bd_see_lz(url) for url in urls]
elif type(urls) is str:
    uris = [file] + [bd_see_lz(urls)]

epub_make(uris, '骑士&魔法 Web', chapter_check=False)
Exemplo n.º 13
0
import sys
sys.path.append('.')
'''
from novels.core.epub_txt import *

chapter_pattern = '第'+re_number+'{1,6}章'

# Epub Txt
files = '/Volumes/Storage/Downloads/OVERLORD(WEB版).txt'

et = Epub_Txt(files, chapter_check=True, codes='GBK')
et.make_epub(chapter_pattern=chapter_pattern)\
'''


from novels.core.epub_make import *

chapter_pattern = '第\d+?话.+'
epub_make('/Volumes/Storage/Downloads/重来吧,魔王大人.txt', chapter_check=True, chapter_pattern=chapter_pattern)
Exemplo n.º 14
0
import sys
sys.path.append('.')

from novels.core.epub_make import *

# change the username='', password='' in novels.core.epub_ln.py with lightnovel.cn account
# Run codes like example.py

#uris = input('Uris are:\n').split(',')
#print(uris)

'''
uris = [
    'https://tieba.baidu.com/p/5972159545',     #   序章
    'https://tieba.baidu.com/p/6051288645',     #   1
]

chapter_pattern = '((第\s{0,3}?'+re_number+'{1,3}?\s{0,3}?章)|(尾声)|(后记)|(序章)).*?(?=<)'

second_pattern = '(第'+re_number+'{1,3}?节).*?(?=<)'

epub_make(uris, book_title='07', chapter_check=True, chapter_pattern=chapter_pattern, second_pattern=second_pattern)

epub_make('https://www.qinxiaoshuo.com/book/平凡职业造就世界最强')

epub_make('https://www.qinxiaoshuo.com/book/OVERLORD')

epub_make('https://www.qinxiaoshuo.com/book/问题儿童都来自异世界?')

epub_make('https://www.qinxiaoshuo.com/book/Last%20Embryo%28问题儿童都来自异世界?%20第二部%29')
import sys
sys.path.append('.')

from novels.core.epub_make import *

# Chapter Pattern
## Numbers
re_number = '[12345678900123456789一二三四五六七八九十百①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳]{1,5}?'
## chapter title split pattern core
chapter_pattern_core = ('(幕间)|(序言)|(目录)|(间章)|(尾声)|' '(' + re_number + '章)')
## chapter title split pattern
chapter_pattern = '(?im)(?<=<strong>)(' + chapter_pattern_core + ')[^<>]{0,20}?(?=</strong>)'

# Epub Append
url = [
    'https://www.lightnovel.cn/thread-953759-1-1.html',
]

download_path = '/Volumes/Storage/Downloads/'
epub_make(url,
          book_title='14 ln',
          chapter_check=True,
          chapter_pattern=chapter_pattern)
Exemplo n.º 16
0
from novels.tools.masiro_list import *
'''
m = MasiroList('https://masiro.moe/forum.php?mod=forumdisplay&fid=230')

title, list = m.getList()

print(title)

new_list = [link for link, title, date in list]
if new_list != []:
    epub_make(new_list, title)
'''

file = '/Volumes/Storage/Mine/Novels/魔法工学师/魔法工学师 Web.epub'
url = 'https://masiro.moe/forum.php?mod=forumdisplay&fid=230'
m = MasiroList(url)

local_date = datetime.fromtimestamp(os.path.getmtime(file)).date()
print('local date: ', local_date)

title, list = m.getList()
new_list = []
for link, title, date in list:
    if date > local_date:
        new_list.append(link)
        print(title, date)

mf = '^\d\d-\d\d.+?$'
if new_list != []:
    epub_make([file] + new_list, chapter_check=True, chapter_pattern=mf)
Exemplo n.º 17
0
import sys

sys.path.append('.')

from novels.core.epub_make import *

# change the username='', password='' in novels.core.epub_ln.py with lightnovel.cn account
# Run codes like example.py

#uris = input('Uris are:\n').split(',')
#print(uris)
'''
uris = [
    'https://tieba.baidu.com/p/5972159545',     #   序章
    'https://tieba.baidu.com/p/6051288645',     #   1
]

chapter_pattern = '((第\s{0,3}?'+re_number+'{1,3}?\s{0,3}?章)|(尾声)|(后记)|(序章)).*?(?=<)'

second_pattern = '(第'+re_number+'{1,3}?节).*?(?=<)'

epub_make(uris, book_title='07', chapter_check=True, chapter_pattern=chapter_pattern, second_pattern=second_pattern)
'''

chapter_pattern = 'CHAPTER[^<]+'
second_pattern = '\d(?=<)'

uris = ['https://tieba.baidu.com/p/6165113628']

#epub_make(uris, book_title='09 加奈美东行记', chapter_pattern=chapter_pattern, chapter_check=True, time_stamp=False, second_check=True, second_pattern=second_pattern)
Exemplo n.º 18
0
import sys
sys.path.append('.')

from novels.core.epub_make import *

# change the username='', password='' in novels.core.epub_ln.py with lightnovel.cn account
# Run codes like example.py

#uris = input('Uris are:\n').split(',')
#print(uris)

uris = [
    'https://tieba.baidu.com/p/5972159545',  #   序章
    'https://tieba.baidu.com/p/6051288645',  #   1
]

chapter_pattern = '((第\s{0,3}?' + re_number + '{1,3}?\s{0,3}?章)|(尾声)|(后记)|(序章)).*?(?=<)'

second_pattern = '(第' + re_number + '{1,3}?节).*?(?=<)'

epub_make(uris,
          book_title='07',
          chapter_check=True,
          chapter_pattern=chapter_pattern,
          second_pattern=second_pattern)
Exemplo n.º 19
0
print(title)

new_list = [link for link, title, date in list]
if new_list != []:
    epub_make(new_list, title)

file = '/Volumes/Storage/Mine/Novels/无职转生/无职转生 Web.epub'
urls = [#'https://masiro.moe/forum.php?mod=viewthread&tid=9704&extra=page%3D7',
        #'https://masiro.moe/forum.php?mod=viewthread&tid=9753&extra=page%3D6',
        #'https://masiro.moe/forum.php?mod=viewthread&tid=9866&extra=page%3D4',
        'https://masiro.moe/forum.php?mod=viewthread&tid=9903&extra=page%3D3',]

epub_make([file]+urls, time_stamp=False)
'''

file = '/Volumes/Storage/Mine/Novels/无职转生/无职转生 Web.epub'
url = 'https://masiro.moe/forum.php?mod=forumdisplay&fid=188'
m = MasiroList(url)

local_date = datetime.fromtimestamp(os.path.getmtime(file)).date()
print('local date: ', local_date)

title, list = m.getList()
new_list = []
for link, title, date in list:
    if date > local_date:
        new_list.append(link)

if new_list != []:
    epub_make([file] + new_list)
import sys
sys.path.append('.')

from novels.core.epub_make import *

second_pattern = '(?<=>)\s*?(\d{1,2})\s*?(?=<)'

# Epub Make
uris = [
    'https://www.lightnovel.cn/forum.php?mod=viewthread&tid=988976&page=1&authorid=540169',
]

download_path = '/Volumes/Storage/Downloads/'
epub_make(uris,
          book_title='16',
          chapter_check=True,
          second_check=True,
          second_pattern=second_pattern)
Exemplo n.º 21
0
import sys
sys.path.append('.')

from novels.core.epub_make import *

chapter_pattern = '((第\s{0,3}?'+re_number+'{1,3}?\s{0,3}?章)|(尾声)|(后记)|(序章)).*?(?=<)'

second_pattern = '(第'+re_number+'{1,3}?节).*?(?=<)'

chapter_length = 2000

# Epub Make
uris = [
    'https://www.lightnovel.cn/forum.php?mod=viewthread&tid=942686&page=1&authorid=929872',
]

download_path = '/Volumes/Storage/Downloads/'
epub_make(uris,book_title='6', chapter_check=True, modify_check=True, chapter_pattern=chapter_pattern, second_pattern=second_pattern, chapter_length=chapter_length)
Exemplo n.º 22
0
# -*- coding: utf-8 -*-

import sys

sys.path.append('.')

from novels.core.epub_make import *
from novels.tools.masiro_list import *

from novels.core.epub_qb import *

url = 'http://qinxiaoshuo.com/book/OVERLORD'
'''
_ = QB23('https://www.x23qb.com/book/1888/')
_.makeEpub()
'''

epub_make(url)
Exemplo n.º 23
0
new_list = []
title, list = m.getList()
for link, title, date in list:
    if date > local_date:
        new_list.append(link)

if new_list != []:
    epub_make([file]+new_list)
'''

folder = '/Volumes/Storage/Mine/Novels/重来吧!魔王大人'
file = get_file_path(folder)
url = 'https://masiro.moe/forum.php?mod=forumdisplay&fid=189'

_ = Light(url)

local_date = datetime.fromtimestamp(os.path.getmtime(file)).date()
print('local date: ', local_date)

list = _.get_url_list()

new_list = [file]
for link, title, date in list:
    if date > local_date:
        print(title, date)
        new_list.append(link)

if new_list != []:
    print(new_list)
    epub_make(new_list)
import sys
sys.path.append('.')

from novels.core.epub_make import *

# Chapter Pattern
## Numbers
re_number = '[12345678900123456789一二三四五六七八九十百①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳]{1,5}?'
## chapter title split pattern core
chapter_pattern_core = ('(幕间)|(序言)|(目录)|(间章)|(尾声)|' '(' + re_number + '章)')
## chapter title split pattern
chapter_pattern = '(?im)(?<=<strong>)(' + chapter_pattern_core + ')[^<>]{0,20}?(?=</strong>)'

# Epub Make
uris = [
    'https://tieba.baidu.com/p/6005357137',  #   剑姬外传 11卷 插画
    'https://tieba.baidu.com/p/6014940237?see_lz=1',  #   外传11卷 序章 试翻
    'https://tieba.baidu.com/p/6015134196?see_lz=1',  #   外传11卷 第一章 试翻
    'https://tieba.baidu.com/p/6016156666?see_lz=1',  #   外传11卷 第二章 决战之际 试翻
    'https://tieba.baidu.com/p/6019030639?see_lz=1',  #   外传11卷 第三章 神の素顔 试翻
    'https://tieba.baidu.com/p/6021653518?see_lz=1',  #   外传11卷 第四章 库诺索斯战役 试翻
    'https://tieba.baidu.com/p/6033903657?see_lz=1',  #	外传11卷 第五章 迷执显现 试翻'
    'https://tieba.baidu.com/p/6038296645?see_lz=1',  #	外传11卷 第六章 『之后,神明展露笑颜』 试翻'
    'https://tieba.baidu.com/p/6049972892?see_lz=1',  #   外传11卷 尾声Epilogue Whodunit 试翻
]
#epub_make(uris, '11 bd', chapter_check=False)
uris = 'https://www.lightnovel.cn/thread-956865-1-1.html'
epub_make(uris, '11 ln', chapter_check=True, chapter_pattern=chapter_pattern)