Skip to content

Commit 2bd8c71

Browse files
committed
예제 업데이트
1 parent ca96a80 commit 2bd8c71

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

example/naver/printPaymentHistory.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ const printNaverPayHistory = async (id: string, password: string) => {
1818
const module = NaverApp.ModuleFactory.create(page);
1919
const crawlService = new NaverApp.Service(module);
2020

21-
await crawlService.normalLogin(id, password);
21+
await crawlService.normalLogin(id, password, 100);
2222

23+
browser.close();
2324
const history = await crawlService.getHistory();
2425
console.log(history);
2526
};

example/naver/reactivelyPrintPaymentHistory.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import puppeteer from "puppeteer";
2-
import { NaverApp } from ".";
2+
import { NaverApp } from "trackpurchase";
33

44
import readline from "readline";
55
import { concat, defer, filter, from, tap } from "rxjs";
6-
import { CaptchaStatus } from "app/naver";
6+
import { CaptchaStatus } from "trackpurchase/app/naver";
77

88
const printNaverPayHistory = async (id: string, password: string) => {
99
const MOBILE_UA =
@@ -21,7 +21,7 @@ const printNaverPayHistory = async (id: string, password: string) => {
2121
const module = NaverApp.ModuleFactory.create(page);
2222
const crawlService = new NaverApp.Service(module);
2323

24-
const loginEvent$ = crawlService.interactiveLogin(id, password);
24+
const loginEvent$ = crawlService.interactiveLogin(id, password, 100);
2525
const history$ = defer(() => from(crawlService.getHistory()));
2626
const closePage$ = defer(() => from(page.close()));
2727
const closeBrowser$ = defer(() => from(browser.close()));

0 commit comments

Comments
 (0)