Added WildHealth scripts, need to fix Walmart Screenshots script. G2 templates.
BIN
Scripts/Auto_Scrape_Screenshots/.DS_Store
vendored
BIN
Scripts/Auto_Scrape_Screenshots/2022 tax filing FAQs_1.png
Normal file
|
After Width: | Height: | Size: 143 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/About your earnings_1.png
Normal file
|
After Width: | Height: | Size: 126 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Accessing your metrics_1.png
Normal file
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 98 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Appealing a deactivation_1.png
Normal file
|
After Width: | Height: | Size: 83 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Bagging tips_1.png
Normal file
|
After Width: | Height: | Size: 100 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/COVID-19 best practices_1.png
Normal file
|
After Width: | Height: | Size: 119 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Cancel a trip_1.png
Normal file
|
After Width: | Height: | Size: 93 KiB |
|
After Width: | Height: | Size: 108 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 100 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 121 KiB |
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 136 KiB |
|
After Width: | Height: | Size: 141 KiB |
|
After Width: | Height: | Size: 88 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Delivery FAQs_1.png
Normal file
|
After Width: | Height: | Size: 170 KiB |
|
After Width: | Height: | Size: 80 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Driver support options_1.png
Normal file
|
After Width: | Height: | Size: 82 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Earnings FAQs_1.png
Normal file
|
After Width: | Height: | Size: 158 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Error messages & alerts_1.png
Normal file
|
After Width: | Height: | Size: 93 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 127 KiB |
|
After Width: | Height: | Size: 119 KiB |
|
After Width: | Height: | Size: 92 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Items rejected by customer_1.png
Normal file
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 115 KiB |
|
After Width: | Height: | Size: 93 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Order rejected by customer_1.png
Normal file
|
After Width: | Height: | Size: 97 KiB |
|
After Width: | Height: | Size: 117 KiB |
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 100 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 94 KiB |
|
After Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 77 KiB |
|
After Width: | Height: | Size: 93 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Produce shopping_1.png
Normal file
|
After Width: | Height: | Size: 96 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Questions about earnings?_1.png
Normal file
|
After Width: | Height: | Size: 84 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Receiving offers_1.png
Normal file
|
After Width: | Height: | Size: 94 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Referral incentives_1.png
Normal file
|
After Width: | Height: | Size: 114 KiB |
|
After Width: | Height: | Size: 89 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Resetting your password_1.png
Normal file
|
After Width: | Height: | Size: 86 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Resolving sign-in errors_1.png
Normal file
|
After Width: | Height: | Size: 70 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Resource Center_1.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Returning an order_1.png
Normal file
|
After Width: | Height: | Size: 91 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Returns FAQs_1.png
Normal file
|
After Width: | Height: | Size: 151 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Reviewing your trips_1.png
Normal file
|
After Width: | Height: | Size: 90 KiB |
|
After Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 106 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Shopping & Delivery FAQs_1.png
Normal file
|
After Width: | Height: | Size: 274 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 108 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Signing out_1.png
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
Scripts/Auto_Scrape_Screenshots/Spill cleanup information_1.png
Normal file
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 118 KiB |
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 84 KiB |
@ -33,14 +33,14 @@ const getAllGroups = async (num) => {
|
||||
groupIds.push(res.data.data[i].id)
|
||||
}
|
||||
}
|
||||
//await getAllGroups(page);
|
||||
// await getAllGroups(page);
|
||||
} else {
|
||||
// for (let i = 0; i < res.data.data.length; i++) {
|
||||
// if (res.data.data[i].attributes.status == "live") {
|
||||
// console.log(res.data.data[i].attributes.name)
|
||||
// groupIds.push(res.data.data[i].id)
|
||||
// }
|
||||
// }
|
||||
for (let i = 0; i < res.data.data.length; i++) {
|
||||
if (res.data.data[i].attributes.status == "live") {
|
||||
console.log(res.data.data[i].attributes.name)
|
||||
groupIds.push(res.data.data[i].id)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
@ -59,7 +59,7 @@ function loopIds(i) {
|
||||
}
|
||||
|
||||
async function courseOverview(id, i, num) {
|
||||
console.log("Course Overview Function")
|
||||
// console.log("Course Overview Function")
|
||||
const activity = new Array();
|
||||
const url = "https://walmart.northpass.com/app/courses/";
|
||||
const browser = await puppeteer.launch();
|
||||
@ -71,6 +71,7 @@ async function courseOverview(id, i, num) {
|
||||
await browser.close();
|
||||
} else {
|
||||
await page.setViewport({ width:390, height:844 })
|
||||
// await page.setUserAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3419.0 Safari/537.36');
|
||||
await page.goto(course, {
|
||||
waitUntil: 'load',
|
||||
timeout: 0 });
|
||||
@ -80,32 +81,35 @@ async function courseOverview(id, i, num) {
|
||||
const resourcetitle = await page.evaluate(name => name.innerText, getXpath);
|
||||
console.log(resourcetitle)
|
||||
const resource = resourcetitle.trim();
|
||||
console.log(resource);
|
||||
// console.log(resource);
|
||||
|
||||
await page.screenshot({path: `${resource}_1.png`, fullPage:true, headless:false});
|
||||
await page.screenshot({path: `${resource}_1.png`, fullPage:true, headless:"new"});
|
||||
|
||||
const hrefs = await page.$$eval('a', as => as.map(a => a.href));
|
||||
var links = Object.entries(hrefs);
|
||||
links.forEach(([key, value]) => {
|
||||
var link = value;
|
||||
if (link.includes("activities") && (link.includes(id))) {
|
||||
console.log("Activities Link")
|
||||
console.log(link);
|
||||
activity.push(link);
|
||||
}
|
||||
});
|
||||
setTimeout(() => {
|
||||
|
||||
}, 5000);
|
||||
}, 10000);
|
||||
uniqueLinks = [...new Set(activity)];
|
||||
for (const link of uniqueLinks) {
|
||||
|
||||
num = num+1
|
||||
const newlink = link+uid;
|
||||
console.log("New Link: " + newlink)
|
||||
await page.setViewport({ width: 390, height: 844 })
|
||||
await page.goto(newlink, {
|
||||
waitUntil: 'load',
|
||||
timeout: 0 });
|
||||
await page.screenshot({path: `${resource}_${num}.png`, fullPage: true, headless: false});
|
||||
//screenshots(newlink, resource, num, i);
|
||||
await page.screenshot({path: `${resource}_${num}.png`, fullPage: true, headless:"new"});
|
||||
screenshots(newlink, resource, num, i);
|
||||
}
|
||||
await browser.close();
|
||||
i++;
|
||||
|
||||