Sha256: 1faaef57c247e63b83228e1dd5c20ae9d68a5bceba6eec5f4581b5891ba2df4c

Contents?: true

Size: 1.31 KB

Versions: 1

Compression:

Stored size: 1.31 KB

Contents

# ------------------------------------------------------------
# 小説サイト定義
name: 小説家になろう
scheme: http
domain: ncode.syosetu.com
top_url: \\k<scheme>://\\k<domain>
url: \\k<top_url>/(?<ncode>n\d+[a-z]+)
encoding: UTF-8
confirm_over18: no

# ------------------------------------------------------------
# 書籍情報取得設定
title: <title>(?<title>.+?)</title>
author: 作者:(?:<a href="http://mypage.syosetu.com/\d+/">)?(?<author>.+?)(?:</a>)?$
story: <div id="novel_ex">(?<story>.+?)</div>

# ------------------------------------------------------------
# 目次取得設定
toc_url: \\k<top_url>/\\k<ncode>/
subtitles: |-
  (?:<div class="chapter_title">(?<chapter>.+?)</div>
  
  )?<dl class="novel_sublist2" onclick="javascript:location.href='(?<href>/.+?/(?<index>\d+?)/)'">
  <dd class="subtitle"><a href=".+?">(?<subtitle>.+?)</a></dd>
  <dt class="long_update">
  (?<subdate>.+?)(?:
  <span title="(?<subupdate>.+?) 改稿">
  (<u>改</u>)</span>)?
  </dt>
  </dl>

tcode: <li><a href="\\k<top_url>/txtdownload/top/ncode/(?<tcode>\d+?)/" onclick
txtdownload_url: \\k<top_url>/txtdownload/dlstart/ncode/\\k<tcode>/?no=\\k<index>

# ------------------------------------------------------------
# 特殊な設定
narou_api_url: http://api.syosetu.com/novelapi/api/

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
narou-1.4.0 webnovel/ncode.syosetu.com.yaml