Skip to content

Instantly share code, notes, and snippets.

@ricealexander
Created January 4, 2022 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricealexander/b13109ad196d89fdfe15e3a096d35f1e to your computer and use it in GitHub Desktop.
Save ricealexander/b13109ad196d89fdfe15e3a096d35f1e to your computer and use it in GitHub Desktop.
List of Domain Name/Expiration Dates from Porkbun
let rows = document.querySelectorAll('.domainManagementRow')
let result = ''
for (let row of rows) {
let name = row.querySelector('.domainManagementDomainName').textContent
let expiration = row.querySelector('.toolTip.expiration-').textContent
result += `${name.trim()}\t\t\tExpires ${expiration.trim()}\n`
}
console.log(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment