mirror of
https://github.com/Maks1mS/free-ozon-dpr.git
synced 2024-12-25 03:14:37 +03:00
Compare commits
2 Commits
fadb204413
...
b6043843e4
Author | SHA1 | Date | |
---|---|---|---|
b6043843e4 | |||
84af1913c5 |
File diff suppressed because it is too large
Load Diff
702
merged-data.json
702
merged-data.json
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,7 @@ import {
|
|||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
await woyag();
|
await woyag();
|
||||||
// - await sevenDostavka();
|
// await sevenDostavka();
|
||||||
await ozonWbDpr();
|
await ozonWbDpr();
|
||||||
await globalExpress();
|
await globalExpress();
|
||||||
}
|
}
|
||||||
|
@ -181,7 +181,7 @@ async function globalExpress() {
|
|||||||
source: MAIN_URL,
|
source: MAIN_URL,
|
||||||
points: points.map((p) => ({
|
points: points.map((p) => ({
|
||||||
...p,
|
...p,
|
||||||
operationTime: `<a href="https://vk.com/aliexpress___delivery?w=address-124759560_72654">ГРАФИК РАБОТЫ</a>`,
|
operationTime: `<a href="https://vk.com/global_express_dnr?w=address-124759560_72654">ГРАФИК РАБОТЫ</a>`,
|
||||||
})),
|
})),
|
||||||
},
|
},
|
||||||
undefined,
|
undefined,
|
||||||
|
@ -83,8 +83,8 @@ async function getFromSite() {
|
|||||||
const scripts = document.querySelectorAll("script");
|
const scripts = document.querySelectorAll("script");
|
||||||
|
|
||||||
for (let script of scripts) {
|
for (let script of scripts) {
|
||||||
if (script.textContent.includes('descr: "Бесплатный озон')) {
|
if (script.textContent.includes('descr:"Бесплатный озон')) {
|
||||||
let x = script.textContent.split("[\n{\n").pop().split("\n},\n]")[0];
|
let x = script.textContent.split("[{").pop().split("},]")[0];
|
||||||
|
|
||||||
if (x) {
|
if (x) {
|
||||||
const points = new Function(`return [{${x}}]`)();
|
const points = new Function(`return [{${x}}]`)();
|
||||||
|
Loading…
Reference in New Issue
Block a user