Last active
November 3, 2020 04:34
-
-
Save davidshimjs/c962a269fccdbd7d2a2dd68abcfd0b5b to your computer and use it in GitHub Desktop.
AWS 서비스 목록 CSV로 뽑기
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
var output = ''; | |
document.querySelectorAll('li[data-testid^=services-list-item]').forEach(el => { | |
const serviceLabel = el.querySelector('a').innerText; | |
const serviceId = el.querySelector('a').getAttribute('data-testid'); | |
const href = el.querySelector('a').getAttribute('href'); | |
output += `${serviceLabel},${serviceId},${serviceId},${href}\n`; | |
}); | |
console.log(output); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
새로 변경된 UI에 맞게 스크립트 수정