Videos » Extract Data using Chrome Inspector

Extract Data using Chrome Inspector

Posted by admin
In this video we go over how to extract data from a website using the Chrome Inspector. You can use any inspector on any modern internet browser to do this, I just prefer Chrome Query to get all values: title: el.querySelector("._eYtD2XCVieq6emjKBH3m").innerText, url: el.querySelector(".SQnoC3ObvgnGjWt90zD9Z") != null ? el.querySelector(".SQnoC3ObvgnGjWt90zD9Z") != null.href : null, user: el.querySelector("._2tbHP6ZydRpjI44J3syuqC") != null ? el.querySelector("._2tbHP6ZydRpjI44J3syuqC").innerText : null, subreddit: el.querySelectorAll("._3ryJoIoycVkA88fy40qNJc")[1] != null ? el.querySelectorAll("._3ryJoIoycVkA88fy40qNJc")[1].innerText : null Download: let bb = new Blob([valString], { type: 'text/plain' }); let a = document.createElement('a'); a.download = 'download.txt'; a.href = window.URL.createObjectURL(bb); a.click(); Spreadsheet: copy(vals.map(val ... `=SPLIT("${val.url},${val.title}", ",")`).join("\n")) the ... above is an arrow function Thanks for watching! \u2764\ufe0f Timestamps: 00:00 Intro 00:18 Why do this? 01:58 Chrome Inspector Overview 05:04 Getting the link 09:31 Getting the titles 10:40 Getting the link, title, author, subreddit 17:00 Copying data from the inspector 18:28 Saving data to a file 19:32 Copying to a spreadsheet 20:00 Outro
Posted August 2, 2023
click to rate

Embed  |  231 views