Commit e688f94d authored by nanahira's avatar nanahira

rename

parent bcfeac62
Pipeline #936 passed with stages
in 1 minute and 28 seconds
import { DBReader } from "./src/dbreader";
import { CNFetcher } from "./src/fetcher";
import { NWFetcher } from "./src/nwfetcher";
import _ from "underscore";
async function fetchCardsFromNW(dbreader: DBReader) {
const fetcher = new CNFetcher({ name: "Fetcher", level: "debug" });
const fetcher = new NWFetcher({ name: "Fetcher", level: "debug" });
await fetcher.init();
const strings = await fetcher.fetch();
return await dbreader.getAllCardsFromJapaneseNames(strings);
......
......@@ -13,7 +13,7 @@ function convertCharToFullSize(char: string) {
return char;
}
export class CNFetcher extends Base {
export class NWFetcher extends Base {
private async fetchPage(url: string): Promise<string> {
this.log.debug(`Downloading content from ${url} .`);
const { data } = await axios.get(url, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment