Skip to content

Instantly share code, notes, and snippets.

@davidshimjs
Last active November 3, 2020 04:34
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 davidshimjs/c962a269fccdbd7d2a2dd68abcfd0b5b to your computer and use it in GitHub Desktop.
Save davidshimjs/c962a269fccdbd7d2a2dd68abcfd0b5b to your computer and use it in GitHub Desktop.
AWS 서비스 목록 CSV로 뽑기
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);
@davidshimjs
Copy link
Author

새로 변경된 UI에 맞게 스크립트 수정

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment