@zonuexe/techbook-mcp 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +23 -0
- package/.github/workflows/test.yml +36 -0
- package/AGENTS.md +72 -0
- package/CLAUDE.md +2 -0
- package/LICENSE +661 -0
- package/README.md +154 -0
- package/dist/adapters/cache/memory-cache.d.ts +8 -0
- package/dist/adapters/cache/memory-cache.d.ts.map +1 -0
- package/dist/adapters/cache/memory-cache.js +23 -0
- package/dist/adapters/cache/memory-cache.js.map +1 -0
- package/dist/adapters/cache/null-cache.d.ts +8 -0
- package/dist/adapters/cache/null-cache.d.ts.map +1 -0
- package/dist/adapters/cache/null-cache.js +7 -0
- package/dist/adapters/cache/null-cache.js.map +1 -0
- package/dist/adapters/html/cheerio-parser.d.ts +5 -0
- package/dist/adapters/html/cheerio-parser.d.ts.map +1 -0
- package/dist/adapters/html/cheerio-parser.js +45 -0
- package/dist/adapters/html/cheerio-parser.js.map +1 -0
- package/dist/adapters/http/fetch-client.d.ts +6 -0
- package/dist/adapters/http/fetch-client.d.ts.map +1 -0
- package/dist/adapters/http/fetch-client.js +43 -0
- package/dist/adapters/http/fetch-client.js.map +1 -0
- package/dist/adapters/http/mock-client.d.ts +19 -0
- package/dist/adapters/http/mock-client.d.ts.map +1 -0
- package/dist/adapters/http/mock-client.js +59 -0
- package/dist/adapters/http/mock-client.js.map +1 -0
- package/dist/adapters/publishers/base.d.ts +24 -0
- package/dist/adapters/publishers/base.d.ts.map +1 -0
- package/dist/adapters/publishers/base.js +88 -0
- package/dist/adapters/publishers/base.js.map +1 -0
- package/dist/adapters/publishers/gihyo.d.ts +3 -0
- package/dist/adapters/publishers/gihyo.d.ts.map +1 -0
- package/dist/adapters/publishers/gihyo.js +75 -0
- package/dist/adapters/publishers/gihyo.js.map +1 -0
- package/dist/adapters/publishers/lambdanote.d.ts +3 -0
- package/dist/adapters/publishers/lambdanote.d.ts.map +1 -0
- package/dist/adapters/publishers/lambdanote.js +113 -0
- package/dist/adapters/publishers/lambdanote.js.map +1 -0
- package/dist/adapters/publishers/registry.d.ts +3 -0
- package/dist/adapters/publishers/registry.d.ts.map +1 -0
- package/dist/adapters/publishers/registry.js +11 -0
- package/dist/adapters/publishers/registry.js.map +1 -0
- package/dist/adapters/publishers/tatsu-zine.d.ts +3 -0
- package/dist/adapters/publishers/tatsu-zine.d.ts.map +1 -0
- package/dist/adapters/publishers/tatsu-zine.js +110 -0
- package/dist/adapters/publishers/tatsu-zine.js.map +1 -0
- package/dist/adapters/publishers/techbookfest.d.ts +3 -0
- package/dist/adapters/publishers/techbookfest.d.ts.map +1 -0
- package/dist/adapters/publishers/techbookfest.js +134 -0
- package/dist/adapters/publishers/techbookfest.js.map +1 -0
- package/dist/application/get-book-detail.d.ts +4 -0
- package/dist/application/get-book-detail.d.ts.map +1 -0
- package/dist/application/get-book-detail.js +9 -0
- package/dist/application/get-book-detail.js.map +1 -0
- package/dist/application/search-books.d.ts +11 -0
- package/dist/application/search-books.d.ts.map +1 -0
- package/dist/application/search-books.js +23 -0
- package/dist/application/search-books.js.map +1 -0
- package/dist/domain/book.d.ts +32 -0
- package/dist/domain/book.d.ts.map +1 -0
- package/dist/domain/book.js +2 -0
- package/dist/domain/book.js.map +1 -0
- package/dist/domain/publisher.d.ts +17 -0
- package/dist/domain/publisher.d.ts.map +1 -0
- package/dist/domain/publisher.js +2 -0
- package/dist/domain/publisher.js.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +12 -0
- package/dist/main.js.map +1 -0
- package/dist/mcp/server.d.ts +5 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +79 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/tools.d.ts +47 -0
- package/dist/mcp/tools.d.ts.map +1 -0
- package/dist/mcp/tools.js +53 -0
- package/dist/mcp/tools.js.map +1 -0
- package/dist/ports/cache.d.ts +6 -0
- package/dist/ports/cache.d.ts.map +1 -0
- package/dist/ports/cache.js +2 -0
- package/dist/ports/cache.js.map +1 -0
- package/dist/ports/html-parser.d.ts +14 -0
- package/dist/ports/html-parser.d.ts.map +1 -0
- package/dist/ports/html-parser.js +2 -0
- package/dist/ports/html-parser.js.map +1 -0
- package/dist/ports/http.d.ts +16 -0
- package/dist/ports/http.d.ts.map +1 -0
- package/dist/ports/http.js +2 -0
- package/dist/ports/http.js.map +1 -0
- package/docs/design-doc.md +365 -0
- package/flake.nix +50 -0
- package/package.json +29 -0
- package/src/adapters/cache/memory-cache.ts +31 -0
- package/src/adapters/cache/null-cache.ts +8 -0
- package/src/adapters/html/cheerio-parser.ts +49 -0
- package/src/adapters/http/fetch-client.ts +47 -0
- package/src/adapters/http/mock-client.ts +77 -0
- package/src/adapters/publishers/base.ts +129 -0
- package/src/adapters/publishers/book-tech.ts +117 -0
- package/src/adapters/publishers/born-digital.ts +158 -0
- package/src/adapters/publishers/coronasha.ts +139 -0
- package/src/adapters/publishers/gihyo.ts +120 -0
- package/src/adapters/publishers/lambdanote.ts +146 -0
- package/src/adapters/publishers/manatee.ts +112 -0
- package/src/adapters/publishers/maruzen-publishing.ts +141 -0
- package/src/adapters/publishers/optronics.ts +113 -0
- package/src/adapters/publishers/oreilly-japan.ts +138 -0
- package/src/adapters/publishers/peaks.ts +98 -0
- package/src/adapters/publishers/personal-media.ts +168 -0
- package/src/adapters/publishers/registry.ts +36 -0
- package/src/adapters/publishers/rutles.ts +161 -0
- package/src/adapters/publishers/saiensu.ts +149 -0
- package/src/adapters/publishers/seshop.ts +121 -0
- package/src/adapters/publishers/tatsu-zine.ts +129 -0
- package/src/adapters/publishers/techbookfest.ts +179 -0
- package/src/application/get-book-detail.ts +17 -0
- package/src/application/search-books.ts +39 -0
- package/src/domain/book.ts +35 -0
- package/src/domain/publisher.ts +18 -0
- package/src/main.ts +13 -0
- package/src/mcp/server.ts +103 -0
- package/src/mcp/tools.ts +54 -0
- package/src/ports/cache.ts +5 -0
- package/src/ports/html-parser.ts +15 -0
- package/src/ports/http.ts +17 -0
- package/tests/fixtures/book-tech-detail.html +51 -0
- package/tests/fixtures/book-tech-search.html +91 -0
- package/tests/fixtures/born-digital-detail.html +62 -0
- package/tests/fixtures/born-digital-search.html +51 -0
- package/tests/fixtures/coronasha-detail.html +41 -0
- package/tests/fixtures/coronasha-search.html +61 -0
- package/tests/fixtures/gihyo-detail.html +42 -0
- package/tests/fixtures/gihyo-search.json +54 -0
- package/tests/fixtures/lambdanote-search.html +66 -0
- package/tests/fixtures/manatee-detail.html +53 -0
- package/tests/fixtures/manatee-search.html +59 -0
- package/tests/fixtures/maruzen-detail.html +51 -0
- package/tests/fixtures/maruzen-search.html +60 -0
- package/tests/fixtures/optronics-detail.html +30 -0
- package/tests/fixtures/optronics-search.html +75 -0
- package/tests/fixtures/oreilly-detail.html +52 -0
- package/tests/fixtures/oreilly-ebook-list.html +53 -0
- package/tests/fixtures/peaks-detail.html +39 -0
- package/tests/fixtures/peaks-top.html +50 -0
- package/tests/fixtures/personal-media-detail.html +32 -0
- package/tests/fixtures/personal-media-search.html +39 -0
- package/tests/fixtures/rutles-detail.html +32 -0
- package/tests/fixtures/rutles-search.html +62 -0
- package/tests/fixtures/saiensu-detail.html +41 -0
- package/tests/fixtures/saiensu-search.html +65 -0
- package/tests/fixtures/seshop-detail.html +45 -0
- package/tests/fixtures/seshop-search.html +58 -0
- package/tests/fixtures/tatsu-zine-detail-free.html +22 -0
- package/tests/fixtures/tatsu-zine-search.html +24 -0
- package/tests/fixtures/techbookfest-search.json +73 -0
- package/tests/unit/adapters/publishers/book-tech.test.ts +183 -0
- package/tests/unit/adapters/publishers/born-digital.test.ts +191 -0
- package/tests/unit/adapters/publishers/coronasha.test.ts +201 -0
- package/tests/unit/adapters/publishers/gihyo.test.ts +135 -0
- package/tests/unit/adapters/publishers/lambdanote.test.ts +84 -0
- package/tests/unit/adapters/publishers/manatee.test.ts +163 -0
- package/tests/unit/adapters/publishers/maruzen-publishing.test.ts +177 -0
- package/tests/unit/adapters/publishers/optronics.test.ts +205 -0
- package/tests/unit/adapters/publishers/oreilly-japan.test.ts +191 -0
- package/tests/unit/adapters/publishers/peaks.test.ts +174 -0
- package/tests/unit/adapters/publishers/personal-media.test.ts +196 -0
- package/tests/unit/adapters/publishers/rutles.test.ts +170 -0
- package/tests/unit/adapters/publishers/saiensu.test.ts +167 -0
- package/tests/unit/adapters/publishers/seshop.test.ts +171 -0
- package/tests/unit/adapters/publishers/tatsu-zine.test.ts +130 -0
- package/tests/unit/adapters/publishers/techbookfest.test.ts +93 -0
- package/tsconfig.json +17 -0
- package/vitest.config.ts +8 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import type { PublisherAdapter, PublisherDeps } from "../../domain/publisher.js";
|
|
2
|
+
import type { BookRecord, SearchQuery } from "../../domain/book.js";
|
|
3
|
+
import { fetchText, resolveUrl, extractEbookStoresFromDoc } from "./base.js";
|
|
4
|
+
|
|
5
|
+
const BASE_URL = "https://www.maruzen-publishing.co.jp";
|
|
6
|
+
const SEARCH_URL = `${BASE_URL}/search/`;
|
|
7
|
+
|
|
8
|
+
/** 403回避のために自サイトをRefererとして付与する必要がある */
|
|
9
|
+
const EXTRA_HEADERS = { Referer: `${BASE_URL}/` };
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* "ボリス・チェルニー 著 折山文哉 訳" → ["ボリス・チェルニー", "折山文哉"]
|
|
13
|
+
* 役割語(著・訳・編・監訳・監修など)を除去する。
|
|
14
|
+
*/
|
|
15
|
+
function parseAuthorsFromText(text: string): string[] {
|
|
16
|
+
return text
|
|
17
|
+
.split(/[ \s]+(?=\S)/)
|
|
18
|
+
.map(part => part.replace(/[\u3000\s]*(著|訳|編|監修|監訳|他)[\u3000\s]*$/, "").trim())
|
|
19
|
+
.filter(Boolean);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* div.author 内の各リンクから役割語を除去して著者名のみ返す。
|
|
24
|
+
* リンクテキストには名前のみ含まれるため、隣接するテキストノードの役割語は無視してよい。
|
|
25
|
+
*/
|
|
26
|
+
function parseAuthorLinks(authors: string[]): string[] {
|
|
27
|
+
return authors
|
|
28
|
+
.map(name => name.replace(/[\u3000\s]*(著|訳|編|監修|監訳|他)[\u3000\s]*$/, "").trim())
|
|
29
|
+
.filter(Boolean);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* "2020/03/31" → "2020-03-31"
|
|
34
|
+
* "2020年3月31日" → "2020-03-31"
|
|
35
|
+
*/
|
|
36
|
+
function parseDate(text: string): string | undefined {
|
|
37
|
+
// YYYY/MM/DD
|
|
38
|
+
const m1 = text.match(/(\d{4})\/(\d{1,2})\/(\d{1,2})/);
|
|
39
|
+
if (m1) {
|
|
40
|
+
return `${m1[1]}-${m1[2].padStart(2, "0")}-${m1[3].padStart(2, "0")}`;
|
|
41
|
+
}
|
|
42
|
+
// YYYY年M月D日
|
|
43
|
+
const m2 = text.match(/(\d{4})年(\d{1,2})月(\d{1,2})日/);
|
|
44
|
+
if (m2) {
|
|
45
|
+
return `${m2[1]}-${m2[2].padStart(2, "0")}-${m2[3].padStart(2, "0")}`;
|
|
46
|
+
}
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export const maruzenPublishingAdapter: PublisherAdapter = {
|
|
51
|
+
id: "maruzen-publishing",
|
|
52
|
+
name: "丸善出版",
|
|
53
|
+
baseUrl: BASE_URL,
|
|
54
|
+
|
|
55
|
+
async search(query: SearchQuery, deps: PublisherDeps): Promise<BookRecord[]> {
|
|
56
|
+
const word = [query.title, query.author].filter(Boolean).join(" ");
|
|
57
|
+
if (!word) return [];
|
|
58
|
+
|
|
59
|
+
const url = `${SEARCH_URL}?search_keyword=${encodeURIComponent(word)}&format=1`;
|
|
60
|
+
const html = await fetchText(url, deps, EXTRA_HEADERS);
|
|
61
|
+
const doc = deps.parser.parse(html);
|
|
62
|
+
|
|
63
|
+
const results: BookRecord[] = [];
|
|
64
|
+
const limit = query.limit ?? 10;
|
|
65
|
+
|
|
66
|
+
for (const item of doc.select("div.booklist div.item")) {
|
|
67
|
+
const linkEl = item.find("div.ttl a")[0];
|
|
68
|
+
if (!linkEl) continue;
|
|
69
|
+
|
|
70
|
+
const title = linkEl.text().trim();
|
|
71
|
+
const href = linkEl.attr("href");
|
|
72
|
+
if (!title || !href) continue;
|
|
73
|
+
|
|
74
|
+
const bookUrl = href.startsWith("http") ? href : `${BASE_URL}${href}`;
|
|
75
|
+
|
|
76
|
+
const authorLinks = item.find("div.author a").map(el => el.text().trim());
|
|
77
|
+
const authors = parseAuthorLinks(authorLinks);
|
|
78
|
+
|
|
79
|
+
const imgEl = item.find("div.image img")[0];
|
|
80
|
+
const imgSrc = imgEl?.attr("src");
|
|
81
|
+
const coverImageUrl = imgSrc ? resolveUrl(BASE_URL, imgSrc) : undefined;
|
|
82
|
+
|
|
83
|
+
results.push({
|
|
84
|
+
title,
|
|
85
|
+
authors,
|
|
86
|
+
publisher: "丸善出版",
|
|
87
|
+
url: bookUrl,
|
|
88
|
+
coverImageUrl,
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
if (results.length >= limit) break;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return results;
|
|
95
|
+
},
|
|
96
|
+
|
|
97
|
+
async getDetail(url: string, deps: PublisherDeps): Promise<BookRecord> {
|
|
98
|
+
const html = await fetchText(url, deps, EXTRA_HEADERS);
|
|
99
|
+
const doc = deps.parser.parse(html);
|
|
100
|
+
|
|
101
|
+
// タイトルは <title> タグ、またはh1など(サイト構造に依存)
|
|
102
|
+
// div#bookData table の th/td からメタデータを取得
|
|
103
|
+
const table = doc.selectOne("div#bookData table");
|
|
104
|
+
let authors: string[] = [];
|
|
105
|
+
let publisher = "丸善出版";
|
|
106
|
+
let publishedAt: string | undefined;
|
|
107
|
+
|
|
108
|
+
if (table) {
|
|
109
|
+
for (const row of table.find("tr")) {
|
|
110
|
+
const th = row.find("th")[0]?.text().trim() ?? "";
|
|
111
|
+
const tdText = row.find("td")[0]?.text().trim() ?? "";
|
|
112
|
+
|
|
113
|
+
if (th === "著者") {
|
|
114
|
+
authors = parseAuthorsFromText(tdText);
|
|
115
|
+
} else if (th === "発行元") {
|
|
116
|
+
publisher = tdText || "丸善出版";
|
|
117
|
+
} else if (th === "出版年月日") {
|
|
118
|
+
publishedAt = parseDate(tdText);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// ページタイトルから書籍タイトルを取得(" | 丸善出版" を除去)
|
|
124
|
+
const pageTitle = doc.selectOne("title")?.text().trim() ?? "";
|
|
125
|
+
const title = pageTitle.replace(/\s*[||]\s*丸善出版.*$/, "").trim();
|
|
126
|
+
|
|
127
|
+
// 電子書籍ストア(kw.maruzen.co.jp は機関向けなので除外)
|
|
128
|
+
const ebookStores = extractEbookStoresFromDoc(doc).filter(
|
|
129
|
+
store => !store.url.includes("kw.maruzen.co.jp"),
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
return {
|
|
133
|
+
title,
|
|
134
|
+
authors,
|
|
135
|
+
publisher,
|
|
136
|
+
url,
|
|
137
|
+
publishedAt,
|
|
138
|
+
ebookStores: ebookStores.length > 0 ? ebookStores : undefined,
|
|
139
|
+
};
|
|
140
|
+
},
|
|
141
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { PublisherAdapter, PublisherDeps } from "../../domain/publisher.js";
|
|
2
|
+
import type { BookRecord, SearchQuery } from "../../domain/book.js";
|
|
3
|
+
import { fetchText, parseJapanesePrice, resolveUrl } from "./base.js";
|
|
4
|
+
|
|
5
|
+
const BASE_URL = "https://optronics-ebook.com";
|
|
6
|
+
const LIST_URL = `${BASE_URL}/products/list.php`;
|
|
7
|
+
|
|
8
|
+
/** 電子書籍カテゴリID */
|
|
9
|
+
const EBOOK_CATEGORY_ID = "1";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* listcomment / main_comment のテキストから各フィールドを抽出する。
|
|
13
|
+
* フォーマット例:
|
|
14
|
+
* "著者:波多腰 玄一\n発行:㈱オプトロニクス社\n頁数:384頁\n..."
|
|
15
|
+
*/
|
|
16
|
+
function parseComment(text: string): { authors: string[]; publisher?: string } {
|
|
17
|
+
const authorMatch = text.match(/著者[::]\s*([^\n<]+)/);
|
|
18
|
+
const authors = authorMatch
|
|
19
|
+
? authorMatch[1].split(/[、,]/).map(s => s.trim()).filter(Boolean)
|
|
20
|
+
: [];
|
|
21
|
+
|
|
22
|
+
const publisherMatch = text.match(/発行[::]\s*([^\n<]+)/);
|
|
23
|
+
const publisher = publisherMatch
|
|
24
|
+
? publisherMatch[1].replace(/[㈱㈲]/g, "").trim() || undefined
|
|
25
|
+
: undefined;
|
|
26
|
+
|
|
27
|
+
return { authors, publisher };
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const optronicsAdapter: PublisherAdapter = {
|
|
31
|
+
id: "optronics",
|
|
32
|
+
name: "オプトロニクス社",
|
|
33
|
+
baseUrl: BASE_URL,
|
|
34
|
+
|
|
35
|
+
async search(query: SearchQuery, deps: PublisherDeps): Promise<BookRecord[]> {
|
|
36
|
+
const word = [query.title, query.author].filter(Boolean).join(" ");
|
|
37
|
+
if (!word) return [];
|
|
38
|
+
|
|
39
|
+
const url = `${LIST_URL}?name=${encodeURIComponent(word)}&category_id=${EBOOK_CATEGORY_ID}`;
|
|
40
|
+
const html = await fetchText(url, deps);
|
|
41
|
+
const doc = deps.parser.parse(html);
|
|
42
|
+
|
|
43
|
+
const results: BookRecord[] = [];
|
|
44
|
+
const limit = query.limit ?? 10;
|
|
45
|
+
|
|
46
|
+
for (const block of doc.select("div.list_area")) {
|
|
47
|
+
const titleEl = block.find("div.listrightbloc h3 a")[0];
|
|
48
|
+
if (!titleEl) continue;
|
|
49
|
+
|
|
50
|
+
const title = titleEl.text().trim();
|
|
51
|
+
const href = titleEl.attr("href");
|
|
52
|
+
if (!title || !href) continue;
|
|
53
|
+
|
|
54
|
+
const bookUrl = href.startsWith("http") ? href : `${BASE_URL}${href}`;
|
|
55
|
+
|
|
56
|
+
const priceText = block.find("div.pricebox .price")[0]?.text().trim();
|
|
57
|
+
const price = priceText ? parseJapanesePrice(priceText) : undefined;
|
|
58
|
+
|
|
59
|
+
const commentText = block.find("div.listcomment")[0]?.text().trim() ?? "";
|
|
60
|
+
const { authors, publisher } = parseComment(commentText);
|
|
61
|
+
|
|
62
|
+
const imgEl = block.find("div.listphoto img.picture")[0];
|
|
63
|
+
const imgSrc = imgEl?.attr("src");
|
|
64
|
+
const coverImageUrl = imgSrc ? resolveUrl(BASE_URL, imgSrc) : undefined;
|
|
65
|
+
|
|
66
|
+
results.push({
|
|
67
|
+
title,
|
|
68
|
+
authors,
|
|
69
|
+
publisher: publisher ?? "オプトロニクス社",
|
|
70
|
+
url: bookUrl,
|
|
71
|
+
price,
|
|
72
|
+
coverImageUrl,
|
|
73
|
+
ebookStores: [{ name: "オプトロニクス社", url: bookUrl, drm: "free" }],
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
if (results.length >= limit) break;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return results;
|
|
80
|
+
},
|
|
81
|
+
|
|
82
|
+
async getDetail(url: string, deps: PublisherDeps): Promise<BookRecord> {
|
|
83
|
+
const html = await fetchText(url, deps);
|
|
84
|
+
const doc = deps.parser.parse(html);
|
|
85
|
+
|
|
86
|
+
// タイトル: <title>OPTRONICS eBOOK / {title}</title>
|
|
87
|
+
const rawTitle = doc.selectOne("title")?.text().trim() ?? "";
|
|
88
|
+
const title = rawTitle.replace(/^OPTRONICS\s+eBOOK\s*[//]\s*/, "").trim();
|
|
89
|
+
|
|
90
|
+
// 価格: #price02_default
|
|
91
|
+
const priceText = doc.selectOne("#price02_default")?.text().trim();
|
|
92
|
+
const price = priceText ? parseJapanesePrice(priceText) : undefined;
|
|
93
|
+
|
|
94
|
+
// 著者・発行元: div.main_comment テキスト
|
|
95
|
+
const commentText = doc.selectOne("div.main_comment")?.text().trim() ?? "";
|
|
96
|
+
const { authors, publisher } = parseComment(commentText);
|
|
97
|
+
|
|
98
|
+
// カバー画像: img.picture
|
|
99
|
+
const imgEl = doc.selectOne("img.picture");
|
|
100
|
+
const imgSrc = imgEl?.attr("src");
|
|
101
|
+
const coverImageUrl = imgSrc ? resolveUrl(BASE_URL, imgSrc) : undefined;
|
|
102
|
+
|
|
103
|
+
return {
|
|
104
|
+
title,
|
|
105
|
+
authors,
|
|
106
|
+
publisher: publisher ?? "オプトロニクス社",
|
|
107
|
+
url,
|
|
108
|
+
price,
|
|
109
|
+
coverImageUrl,
|
|
110
|
+
ebookStores: [{ name: "オプトロニクス社", url, drm: "free" }],
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type { PublisherAdapter, PublisherDeps } from "../../domain/publisher.js";
|
|
2
|
+
import type { BookRecord, SearchQuery } from "../../domain/book.js";
|
|
3
|
+
import { fetchText, parseJapanesePrice, resolveUrl } from "./base.js";
|
|
4
|
+
|
|
5
|
+
const BASE_URL = "https://www.oreilly.co.jp";
|
|
6
|
+
const EBOOK_LIST_URL = `${BASE_URL}/ebook/`;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* "2026年04月03日" → "2026-04-03"
|
|
10
|
+
* "2025-04-08" (content属性) はそのまま返す
|
|
11
|
+
*/
|
|
12
|
+
function parseOreillyDate(text: string): string | undefined {
|
|
13
|
+
const jpMatch = text.match(/(\d{4})年(\d{2})月(\d{2})日/);
|
|
14
|
+
if (jpMatch) return `${jpMatch[1]}-${jpMatch[2]}-${jpMatch[3]}`;
|
|
15
|
+
const isoMatch = text.match(/\d{4}-\d{2}-\d{2}/);
|
|
16
|
+
return isoMatch ? isoMatch[0] : undefined;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 著者文字列をパースして配列に変換する。
|
|
21
|
+
* 例: "Dan Vanderkam 著、今村 謙士 訳" → ["Dan Vanderkam", "今村 謙士"]
|
|
22
|
+
* 役割語(著・訳・監訳・監修・編など)を除去する。
|
|
23
|
+
*/
|
|
24
|
+
function parseAuthors(text: string): string[] {
|
|
25
|
+
return text
|
|
26
|
+
.split(/[、,]/)
|
|
27
|
+
.map(s => s.replace(/[\u3000\s]*(著|訳|監訳|監修|編|他|著訳|著・訳)[\u3000\s]*$/, "").trim())
|
|
28
|
+
.filter(Boolean);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const oreillyJapanAdapter: PublisherAdapter = {
|
|
32
|
+
id: "oreilly-japan",
|
|
33
|
+
name: "オライリー・ジャパン",
|
|
34
|
+
baseUrl: BASE_URL,
|
|
35
|
+
|
|
36
|
+
async search(query: SearchQuery, deps: PublisherDeps): Promise<BookRecord[]> {
|
|
37
|
+
// 検索APIがないためタイトルでローカルフィルタリングする
|
|
38
|
+
// 著者のみの検索は各書籍詳細ページを全取得しないと不可能なため非対応
|
|
39
|
+
if (!query.title) return [];
|
|
40
|
+
|
|
41
|
+
const keyword = query.title.toLowerCase();
|
|
42
|
+
const limit = query.limit ?? 10;
|
|
43
|
+
|
|
44
|
+
const html = await fetchText(EBOOK_LIST_URL, deps);
|
|
45
|
+
const doc = deps.parser.parse(html);
|
|
46
|
+
|
|
47
|
+
const results: BookRecord[] = [];
|
|
48
|
+
|
|
49
|
+
for (const row of doc.select(".ebookCatalog tbody tr")) {
|
|
50
|
+
const titleEl = row.find("td.title a")[0];
|
|
51
|
+
if (!titleEl) continue;
|
|
52
|
+
|
|
53
|
+
const title = titleEl.text().trim();
|
|
54
|
+
if (!title.toLowerCase().includes(keyword)) continue;
|
|
55
|
+
|
|
56
|
+
const href = titleEl.attr("href");
|
|
57
|
+
if (!href) continue;
|
|
58
|
+
const url = resolveUrl(EBOOK_LIST_URL, href);
|
|
59
|
+
|
|
60
|
+
const isbnRaw = row.find("td.isbn")[0]?.text().trim();
|
|
61
|
+
const isbn = isbnRaw?.replace(/-/g, "");
|
|
62
|
+
|
|
63
|
+
const priceText = row.find("td.price")[0]?.text().trim();
|
|
64
|
+
const price = priceText ? parseJapanesePrice(priceText) : undefined;
|
|
65
|
+
|
|
66
|
+
const dateText = row.find("td")[3]?.text().trim();
|
|
67
|
+
const publishedAt = dateText ? parseOreillyDate(dateText) : undefined;
|
|
68
|
+
|
|
69
|
+
const coverImageUrl = isbn
|
|
70
|
+
? `${BASE_URL}/books/images/picture_large${isbnRaw}.jpeg`
|
|
71
|
+
: undefined;
|
|
72
|
+
|
|
73
|
+
results.push({
|
|
74
|
+
title,
|
|
75
|
+
authors: [],
|
|
76
|
+
publisher: "オライリー・ジャパン",
|
|
77
|
+
url,
|
|
78
|
+
isbn,
|
|
79
|
+
price,
|
|
80
|
+
publishedAt,
|
|
81
|
+
coverImageUrl,
|
|
82
|
+
ebookStores: [{ name: "オライリー・ジャパン", url, drm: "free" }],
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
if (results.length >= limit) break;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return results;
|
|
89
|
+
},
|
|
90
|
+
|
|
91
|
+
async getDetail(url: string, deps: PublisherDeps): Promise<BookRecord> {
|
|
92
|
+
const html = await fetchText(url, deps);
|
|
93
|
+
const doc = deps.parser.parse(html);
|
|
94
|
+
|
|
95
|
+
const titleMain = doc.selectOne("h1[itemprop='name']")?.text().trim() ?? "";
|
|
96
|
+
const subTitle = doc.selectOne("p.sub_title")?.text()
|
|
97
|
+
.replace(/^[\s\u3000―\-]+/, "").trim();
|
|
98
|
+
const title = subTitle ? `${titleMain} ―${subTitle}` : titleMain;
|
|
99
|
+
|
|
100
|
+
const authorText = doc.selectOne("span[itemprop='author']")?.text().trim() ?? "";
|
|
101
|
+
const authors = parseAuthors(authorText);
|
|
102
|
+
|
|
103
|
+
const isbnRaw = doc.selectOne("dd[itemprop='isbn']")?.text().trim();
|
|
104
|
+
const isbn = isbnRaw?.replace(/-/g, "");
|
|
105
|
+
|
|
106
|
+
const publishedAt = doc.selectOne("dd[itemprop='datePublished']")?.attr("content")
|
|
107
|
+
?? undefined;
|
|
108
|
+
|
|
109
|
+
const coverImageUrl = doc.selectOne("img.cover-photo")?.attr("src") ?? undefined;
|
|
110
|
+
|
|
111
|
+
const description = doc.selectOne("p[itemprop='description']")?.text().trim()
|
|
112
|
+
|| undefined;
|
|
113
|
+
|
|
114
|
+
// Ebook価格を取得: "Ebook" という option-name の次の div
|
|
115
|
+
let price: number | undefined;
|
|
116
|
+
for (const item of doc.select(".option-item")) {
|
|
117
|
+
const name = item.find(".option-name")[0]?.text().trim();
|
|
118
|
+
if (name === "Ebook") {
|
|
119
|
+
const priceText = item.find("div")[1]?.text().trim();
|
|
120
|
+
if (priceText) price = parseJapanesePrice(priceText);
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return {
|
|
126
|
+
title,
|
|
127
|
+
authors,
|
|
128
|
+
publisher: "オライリー・ジャパン",
|
|
129
|
+
url,
|
|
130
|
+
isbn,
|
|
131
|
+
price,
|
|
132
|
+
publishedAt,
|
|
133
|
+
description,
|
|
134
|
+
coverImageUrl,
|
|
135
|
+
ebookStores: [{ name: "オライリー・ジャパン", url, drm: "free" }],
|
|
136
|
+
};
|
|
137
|
+
},
|
|
138
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { PublisherAdapter, PublisherDeps } from "../../domain/publisher.js";
|
|
2
|
+
import type { BookRecord, SearchQuery } from "../../domain/book.js";
|
|
3
|
+
import { fetchText, parseJapanesePrice } from "./base.js";
|
|
4
|
+
|
|
5
|
+
const BASE_URL = "https://peaks.cc";
|
|
6
|
+
|
|
7
|
+
export const peaksAdapter: PublisherAdapter = {
|
|
8
|
+
id: "peaks",
|
|
9
|
+
name: "PEAKS",
|
|
10
|
+
baseUrl: BASE_URL,
|
|
11
|
+
|
|
12
|
+
async search(query: SearchQuery, deps: PublisherDeps): Promise<BookRecord[]> {
|
|
13
|
+
// 検索APIなし。タイトルでトップページの全書籍をローカルフィルタリング。
|
|
14
|
+
// 著者のみの検索は各詳細ページを全取得しないと不可能なため非対応。
|
|
15
|
+
if (!query.title) return [];
|
|
16
|
+
|
|
17
|
+
const keyword = query.title.toLowerCase();
|
|
18
|
+
const html = await fetchText(BASE_URL, deps);
|
|
19
|
+
const doc = deps.parser.parse(html);
|
|
20
|
+
const limit = query.limit ?? 10;
|
|
21
|
+
|
|
22
|
+
const results: BookRecord[] = [];
|
|
23
|
+
|
|
24
|
+
// トップページ掲載の全書籍: article.p-project__unit
|
|
25
|
+
for (const article of doc.select("article.p-project__unit")) {
|
|
26
|
+
const imgEl = article.find("div.p-project__unit_image img")[0];
|
|
27
|
+
const title = imgEl?.attr("alt")?.trim();
|
|
28
|
+
if (!title) continue;
|
|
29
|
+
|
|
30
|
+
if (!title.toLowerCase().includes(keyword)) continue;
|
|
31
|
+
|
|
32
|
+
const linkEl = article.find("div.p-project__unit_image a")[0];
|
|
33
|
+
const href = linkEl?.attr("href");
|
|
34
|
+
if (!href) continue;
|
|
35
|
+
|
|
36
|
+
const bookUrl = `${BASE_URL}${href}`;
|
|
37
|
+
const coverImageUrl = imgEl.attr("src") ?? undefined;
|
|
38
|
+
|
|
39
|
+
results.push({
|
|
40
|
+
title,
|
|
41
|
+
authors: [],
|
|
42
|
+
publisher: "PEAKS",
|
|
43
|
+
url: bookUrl,
|
|
44
|
+
coverImageUrl,
|
|
45
|
+
ebookStores: [{ name: "PEAKS", url: bookUrl, drm: "free" }],
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
if (results.length >= limit) break;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return results;
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
async getDetail(url: string, deps: PublisherDeps): Promise<BookRecord> {
|
|
55
|
+
const html = await fetchText(url, deps);
|
|
56
|
+
const doc = deps.parser.parse(html);
|
|
57
|
+
|
|
58
|
+
const getMeta = (name: string, attr = "content"): string | undefined =>
|
|
59
|
+
doc.selectOne(`meta[name="${name}"]`)?.attr(attr)?.trim() ||
|
|
60
|
+
doc.selectOne(`meta[property="${name}"]`)?.attr("content")?.trim() ||
|
|
61
|
+
undefined;
|
|
62
|
+
|
|
63
|
+
// タイトル: twitter:title(『』なし)が最もクリーン
|
|
64
|
+
const title =
|
|
65
|
+
getMeta("twitter:title") ||
|
|
66
|
+
doc.selectOne("h2.p-project__intro_title")?.text()
|
|
67
|
+
.trim().replace(/^[『「]|[』」]$/g, "") ||
|
|
68
|
+
"";
|
|
69
|
+
|
|
70
|
+
// 著者: p-project__intro_author 内のリンクテキスト(末尾カンマを除去)
|
|
71
|
+
const authors = doc.select("ul.p-project__intro_author a")
|
|
72
|
+
.map(el => el.text().trim().replace(/,\s*$/, ""))
|
|
73
|
+
.filter(Boolean);
|
|
74
|
+
|
|
75
|
+
// 価格: 電子版 option の span テキスト
|
|
76
|
+
const priceEl = doc.selectOne("option[kind='electronic'] span") ??
|
|
77
|
+
doc.selectOne("select#editions option");
|
|
78
|
+
const price = priceEl
|
|
79
|
+
? parseJapanesePrice(priceEl.text())
|
|
80
|
+
: undefined;
|
|
81
|
+
|
|
82
|
+
// カバー画像: twitter:image または og:image
|
|
83
|
+
const coverImageUrl =
|
|
84
|
+
getMeta("twitter:image") ||
|
|
85
|
+
getMeta("og:image") ||
|
|
86
|
+
undefined;
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
title,
|
|
90
|
+
authors,
|
|
91
|
+
publisher: "PEAKS",
|
|
92
|
+
url,
|
|
93
|
+
price,
|
|
94
|
+
coverImageUrl,
|
|
95
|
+
ebookStores: [{ name: "PEAKS", url, drm: "free" }],
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
};
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import type { PublisherAdapter, PublisherDeps } from "../../domain/publisher.js";
|
|
2
|
+
import type { BookRecord, EbookStore, SearchQuery } from "../../domain/book.js";
|
|
3
|
+
import { fetchText, parseJapanesePrice, resolveUrl } from "./base.js";
|
|
4
|
+
|
|
5
|
+
const BASE_URL = "https://www.personal-media.co.jp";
|
|
6
|
+
const WEBSHOP_URL = `${BASE_URL}/webshop/book/`;
|
|
7
|
+
|
|
8
|
+
/** "2001年11月 発売" → "2001-11-01" (日不明のため1日固定) */
|
|
9
|
+
function parseYearMonth(text: string): string | undefined {
|
|
10
|
+
const m = text.match(/(\d{4})年(\d{1,2})月/);
|
|
11
|
+
if (!m) return undefined;
|
|
12
|
+
return `${m[1]}-${m[2].padStart(2, "0")}-01`;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* テキスト行が著者行であれば著者名配列を返す。
|
|
17
|
+
* "坂村 健 監修" → ["坂村 健"]
|
|
18
|
+
* "A, B 著" → ["A", "B"]
|
|
19
|
+
*/
|
|
20
|
+
function parseAuthorLine(text: string): string[] | null {
|
|
21
|
+
const m = text.match(/^(.+?)\s+(?:著者|著|監修|編著|編集|編|訳|監訳|共著|共編|翻訳)$/);
|
|
22
|
+
if (!m) return null;
|
|
23
|
+
return m[1].split(/[,,、・]/).map(n => n.trim()).filter(Boolean);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const personalMediaAdapter: PublisherAdapter = {
|
|
27
|
+
id: "personal-media",
|
|
28
|
+
name: "パーソナルメディア",
|
|
29
|
+
baseUrl: BASE_URL,
|
|
30
|
+
|
|
31
|
+
async search(query: SearchQuery, deps: PublisherDeps): Promise<BookRecord[]> {
|
|
32
|
+
// ローカルフィルタ型:タイトルなし検索は非対応
|
|
33
|
+
if (!query.title) return [];
|
|
34
|
+
|
|
35
|
+
const html = await fetchText(WEBSHOP_URL, deps);
|
|
36
|
+
const doc = deps.parser.parse(html);
|
|
37
|
+
|
|
38
|
+
const results: BookRecord[] = [];
|
|
39
|
+
const limit = query.limit ?? 10;
|
|
40
|
+
const keyword = query.title.toLowerCase();
|
|
41
|
+
|
|
42
|
+
for (const tr of doc.select("table tr")) {
|
|
43
|
+
// ヘッダー行をスキップ
|
|
44
|
+
if (tr.find("th").length > 0) continue;
|
|
45
|
+
|
|
46
|
+
// 最初の td a が書籍詳細ページへのリンク
|
|
47
|
+
const linkEl = tr.find("td a")[0];
|
|
48
|
+
if (!linkEl) continue;
|
|
49
|
+
|
|
50
|
+
const title = linkEl.text().trim();
|
|
51
|
+
if (!title) continue;
|
|
52
|
+
if (!title.toLowerCase().includes(keyword)) continue;
|
|
53
|
+
|
|
54
|
+
const href = linkEl.attr("href");
|
|
55
|
+
if (!href || !href.includes("/book/")) continue;
|
|
56
|
+
|
|
57
|
+
const bookUrl = resolveUrl(WEBSHOP_URL, href);
|
|
58
|
+
|
|
59
|
+
// 最後の td が税込価格
|
|
60
|
+
const tds = tr.find("td");
|
|
61
|
+
const price = tds.length > 0
|
|
62
|
+
? parseJapanesePrice(tds[tds.length - 1].text())
|
|
63
|
+
: undefined;
|
|
64
|
+
|
|
65
|
+
results.push({
|
|
66
|
+
title,
|
|
67
|
+
authors: [],
|
|
68
|
+
publisher: "パーソナルメディア",
|
|
69
|
+
url: bookUrl,
|
|
70
|
+
price,
|
|
71
|
+
ebookStores: [],
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
if (results.length >= limit) break;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return results;
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
async getDetail(url: string, deps: PublisherDeps): Promise<BookRecord> {
|
|
81
|
+
const html = await fetchText(url, deps);
|
|
82
|
+
const doc = deps.parser.parse(html);
|
|
83
|
+
|
|
84
|
+
const title = doc.selectOne("h1")?.text().trim() ?? "";
|
|
85
|
+
|
|
86
|
+
// カバー画像("_l." パターンで書影を識別)
|
|
87
|
+
const coverImgEl = doc.select("img").find(
|
|
88
|
+
el => (el.attr("src") ?? "").includes("_l."),
|
|
89
|
+
);
|
|
90
|
+
const coverSrc = coverImgEl?.attr("src");
|
|
91
|
+
const coverImageUrl = coverSrc ? resolveUrl(url, coverSrc) : undefined;
|
|
92
|
+
|
|
93
|
+
// ページ全体テキストを行分割してメタデータを抽出
|
|
94
|
+
const lines = (doc.selectOne("body")?.text() ?? "")
|
|
95
|
+
.split(/[\n\r]+/)
|
|
96
|
+
.map(l => l.trim())
|
|
97
|
+
.filter(Boolean);
|
|
98
|
+
|
|
99
|
+
const authors: string[] = [];
|
|
100
|
+
let isbn: string | undefined;
|
|
101
|
+
let publishedAt: string | undefined;
|
|
102
|
+
let price: number | undefined;
|
|
103
|
+
|
|
104
|
+
for (const line of lines) {
|
|
105
|
+
// 著者行
|
|
106
|
+
const authorNames = parseAuthorLine(line);
|
|
107
|
+
if (authorNames) {
|
|
108
|
+
authors.push(...authorNames);
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
// ISBN("ISBN 978-..." 形式)
|
|
112
|
+
if (!isbn && line.includes("ISBN")) {
|
|
113
|
+
const m = line.match(/(\d[\d-]{12,})/);
|
|
114
|
+
if (m) isbn = m[1].replace(/-/g, "");
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
// 発行日("発売" を含む行)
|
|
118
|
+
if (!publishedAt && line.includes("発売")) {
|
|
119
|
+
publishedAt = parseYearMonth(line);
|
|
120
|
+
}
|
|
121
|
+
// 定価
|
|
122
|
+
if (!price && line.startsWith("定価")) {
|
|
123
|
+
price = parseJapanesePrice(line);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// 電子書籍ストアを手動検出(相対URLのため extractEbookStoresFromDoc は不使用)
|
|
128
|
+
const ebookStores: EbookStore[] = [];
|
|
129
|
+
|
|
130
|
+
const allLinks = doc.select("a[href]");
|
|
131
|
+
|
|
132
|
+
// PDF版(ウェブショップ)
|
|
133
|
+
const webshopLink = allLinks.find(
|
|
134
|
+
el => (el.attr("href") ?? "").includes("/webshop/book/"),
|
|
135
|
+
);
|
|
136
|
+
if (webshopLink) {
|
|
137
|
+
ebookStores.push({
|
|
138
|
+
name: "パーソナルメディア",
|
|
139
|
+
url: resolveUrl(url, webshopLink.attr("href")!),
|
|
140
|
+
drm: "social",
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// Smooth Reader版(専用ビューアー)
|
|
145
|
+
const smoothReaderLink = allLinks.find(
|
|
146
|
+
el => (el.attr("href") ?? "").includes("/smoothreader/store/"),
|
|
147
|
+
);
|
|
148
|
+
if (smoothReaderLink) {
|
|
149
|
+
ebookStores.push({
|
|
150
|
+
name: "Smooth Reader",
|
|
151
|
+
url: resolveUrl(url, smoothReaderLink.attr("href")!),
|
|
152
|
+
drm: "drm",
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
return {
|
|
157
|
+
title,
|
|
158
|
+
authors,
|
|
159
|
+
publisher: "パーソナルメディア",
|
|
160
|
+
url,
|
|
161
|
+
isbn,
|
|
162
|
+
price,
|
|
163
|
+
publishedAt,
|
|
164
|
+
coverImageUrl,
|
|
165
|
+
ebookStores,
|
|
166
|
+
};
|
|
167
|
+
},
|
|
168
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { PublisherAdapter } from "../../domain/publisher.js";
|
|
2
|
+
import { bookTechAdapter } from "./book-tech.js";
|
|
3
|
+
import { bornDigitalAdapter } from "./born-digital.js";
|
|
4
|
+
import { coronashaAdapter } from "./coronasha.js";
|
|
5
|
+
import { gihyoAdapter } from "./gihyo.js";
|
|
6
|
+
import { lambdanoteAdapter } from "./lambdanote.js";
|
|
7
|
+
import { manateeAdapter } from "./manatee.js";
|
|
8
|
+
import { maruzenPublishingAdapter } from "./maruzen-publishing.js";
|
|
9
|
+
import { optronicsAdapter } from "./optronics.js";
|
|
10
|
+
import { oreillyJapanAdapter } from "./oreilly-japan.js";
|
|
11
|
+
import { peaksAdapter } from "./peaks.js";
|
|
12
|
+
import { personalMediaAdapter } from "./personal-media.js";
|
|
13
|
+
import { rutlesAdapter } from "./rutles.js";
|
|
14
|
+
import { saiensuAdapter } from "./saiensu.js";
|
|
15
|
+
import { seshopAdapter } from "./seshop.js";
|
|
16
|
+
import { tatsuZineAdapter } from "./tatsu-zine.js";
|
|
17
|
+
import { techbookfestAdapter } from "./techbookfest.js";
|
|
18
|
+
|
|
19
|
+
export const DEFAULT_PUBLISHERS: readonly PublisherAdapter[] = [
|
|
20
|
+
bookTechAdapter,
|
|
21
|
+
bornDigitalAdapter,
|
|
22
|
+
coronashaAdapter,
|
|
23
|
+
gihyoAdapter,
|
|
24
|
+
lambdanoteAdapter,
|
|
25
|
+
manateeAdapter,
|
|
26
|
+
maruzenPublishingAdapter,
|
|
27
|
+
optronicsAdapter,
|
|
28
|
+
oreillyJapanAdapter,
|
|
29
|
+
peaksAdapter,
|
|
30
|
+
personalMediaAdapter,
|
|
31
|
+
rutlesAdapter,
|
|
32
|
+
saiensuAdapter,
|
|
33
|
+
seshopAdapter,
|
|
34
|
+
tatsuZineAdapter,
|
|
35
|
+
techbookfestAdapter,
|
|
36
|
+
];
|