useless commit
This commit is contained in:
parent
babed7889b
commit
10af68eec7
1 changed files with 0 additions and 9 deletions
|
@ -5,10 +5,6 @@ import puppeteer from 'puppeteer';
|
||||||
import { URL } from 'url';
|
import { URL } from 'url';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
interface ScreenshotResponse {
|
|
||||||
buffer: Buffer;
|
|
||||||
path?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class CrawlerService {
|
export class CrawlerService {
|
||||||
|
@ -44,11 +40,6 @@ export class CrawlerService {
|
||||||
|
|
||||||
// URLS //
|
// URLS //
|
||||||
const urls = await page.$$eval('a', links => links.map(link => link.href));
|
const urls = await page.$$eval('a', links => links.map(link => link.href));
|
||||||
console.log(urls);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
await browser.close();
|
await browser.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue