mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-23 06:36:19 +00:00
borrar utils
This commit is contained in:
parent
470629678e
commit
e8a7e4e874
4 changed files with 1711 additions and 4 deletions
|
@ -1,5 +1,4 @@
|
||||||
import puppeteer from "puppeteer";
|
import puppeteer from "puppeteer";
|
||||||
import { blockImages } from "../puppeteer-utils";
|
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
const browser = await puppeteer.launch({
|
const browser = await puppeteer.launch({
|
||||||
|
@ -8,8 +7,6 @@ import { blockImages } from "../puppeteer-utils";
|
||||||
});
|
});
|
||||||
const page = await browser.newPage();
|
const page = await browser.newPage();
|
||||||
|
|
||||||
await blockImages(page);
|
|
||||||
|
|
||||||
await page.goto("https://diaonline.supermercadosdia.com.ar/almacen/");
|
await page.goto("https://diaonline.supermercadosdia.com.ar/almacen/");
|
||||||
|
|
||||||
async function getHrefs() {
|
async function getHrefs() {
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"puppeteer": "^21.6.1",
|
"puppeteer": "^21.6.1",
|
||||||
"puppeteer-utils": "workspace:^",
|
|
||||||
"tsx": "^4.7.0"
|
"tsx": "^4.7.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
1707
pnpm-lock.yaml
Normal file
1707
pnpm-lock.yaml
Normal file
File diff suppressed because it is too large
Load diff
4
pnpm-workspace.yaml
Normal file
4
pnpm-workspace.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
packages:
|
||||||
|
- "dia-link-scraper"
|
||||||
|
- "coto-link-scraper"
|
||||||
|
- "scraper"
|
Loading…
Reference in a new issue