Created
May 17, 2019 12:40
-
-
Save gmoraiz/3c9578888360caac16de310687f009a2 to your computer and use it in GitHub Desktop.
Para auxiliar na montagem de todos os projetos.
This file contains hidden or 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
//iterar cada página gerada pela paginação do git | |
document.querySelectorAll("[itemprop='name codeRepository']").forEach(x => { | |
let projeto = x.innerText.split('-'); | |
if(projeto[0] == 'mobile'){ | |
if(typeof projectsName === 'undefined') projectsName = []; | |
projectsName.push(projeto[1]) | |
} | |
}) | |
//gerar um array bash script com os dados recolhidos. | |
projectsName.reduce((e, i) =>{ | |
return e+= `"${i.trim()}" `; | |
}, `declare -a projetos=(`) + ')' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment