Created
December 1, 2022 17:52
-
-
Save NickDeckerDevs/2d1c11f8cc0833e4d8e9a09fca272dc3 to your computer and use it in GitHub Desktop.
website pages / landing pages inhubspot, run in console after opening up to 100 pages, will be able to copy/paste out the data into vscode, then find/replace the VM..... text with blank
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelectorAll('.content-table-row').forEach(item => { | |
let linktext = item.querySelector('a').innerText | |
let linkedit = item.querySelector('a').href | |
let linkurl = item.querySelector('.private-microcopy.is--text--help').innerText | |
let status = item.querySelector('[data-test-id="content-status-cell"]').innerText | |
console.log(`${linktext},https://${linkurl},${linkedit},${status}`) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment