Glassdoor notes, some Mizuno templates & a script

This commit is contained in:
Norm Rasmussen
2023-07-06 16:53:42 -04:00
parent 407cdafa47
commit 013ba5b9a1
305 changed files with 293 additions and 366 deletions

View File

@ -79,14 +79,15 @@ async function courseOverview(id, i, num) {
await page.title();
const [getXpath] = await page.$x('/html/body/div[1]/div');
const resourcetitle = await page.evaluate(name => name.innerText, getXpath);
console.log(resourcetitle)
// console.log(resourcetitle)
const resource = resourcetitle.trim();
// console.log(resource);
console.log(resource);
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);
console.log(links)
links.forEach(([key, value]) => {
var link = value;
if (link.includes("activities") && (link.includes(id))) {