Sha256: f0a3c8c4a3e972b4b7cf9ff72e8361349162dcf35c32186921254abe32d16e2c

Contents?: true

Size: 1.24 KB

Versions: 2

Compression:

Stored size: 1.24 KB

Contents

# ------------------------------------------------------------
# 小説サイト定義
name: 小説家になろう
domain: http://ncode.syosetu.com
url: \\k<domain>/(?<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 class="novel_ex">(?<story>.+?)</div>

# ------------------------------------------------------------
# 目次取得設定
toc_url: \\k<domain>/\\k<ncode>/
subtitles: |-
  (?:<tr><td class="chapter" colspan="4">(?<chapter>.+?)</td></tr>
   <tr> 
  )?<td class="(?:long_subtitle|period_subtitle)"><a href="(?<href>/.+?/(?<index>\d+?)/)">(?<subtitle>.+?)</a></td>
  <td class="long_update">
  (?<subdate>.+?)(?:
  <span title="(?<subupdate>.+?) 改稿">
  (<u>改</u>)</span>)?
  </td>
  </tr>

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
narou-1.1.2.1 webnovel/ncode.syosetu.com.yaml
narou-1.1.2 webnovel/ncode.syosetu.com.yaml