mirror of
https://github.com/Maks1mS/free-ozon-dpr.git
synced 2025-10-21 17:37:30 +03:00
merge data
This commit is contained in:
@@ -6,10 +6,10 @@ import {
|
||||
} from './update/index.js';
|
||||
|
||||
async function main() {
|
||||
await woyag();
|
||||
// await woyag();
|
||||
await sevenDostavka();
|
||||
await ozonWbDpr();
|
||||
await globalExpress();
|
||||
// await ozonWbDpr();
|
||||
// await globalExpress();
|
||||
}
|
||||
|
||||
main();
|
||||
|
@@ -6,9 +6,28 @@ const OUTPUT_FILE = "data/99_sevenDostavka.json";
|
||||
const linkRegexp = new RegExp(/https:\/\/ozon\.ru\/point\/\d+/);
|
||||
|
||||
async function sevenDostavka() {
|
||||
const res = await fetch("https://dostavka.7telecom.ru");
|
||||
const res = await fetch(
|
||||
"https://yandex.ru/maps/?from=mapframe&ll=37.686304%2C47.189563&mode=usermaps&source=mapframe&um=constructor%3A3126b0c176a2b846a523a2cd2488869ea2f984ec51bcb43b2807ff27a2de39f4&utm_source=share&z=11",
|
||||
{
|
||||
headers: {
|
||||
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
|
||||
'Accept-Encoding': 'gzip, deflate, br',
|
||||
'Accept-Language': 'en-US,en;q=0.9',
|
||||
'Cache-Control': 'no-cache',
|
||||
'Connection': 'keep-alive',
|
||||
'DNT': '1',
|
||||
'Host': 'yandex.ru',
|
||||
'Pragma': 'no-cache',
|
||||
'Referer': 'https://yandex.ru/',
|
||||
'Upgrade-Insecure-Requests': '1',
|
||||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'
|
||||
}
|
||||
}
|
||||
);
|
||||
const htmlText = await res.text();
|
||||
|
||||
console.log(htmlText)
|
||||
|
||||
const dom = new JSDOM(htmlText);
|
||||
const document = dom.window.document;
|
||||
const scripts = document.querySelectorAll("script");
|
||||
|
Reference in New Issue
Block a user