% Extracteur des dépôts GitHub dans une organisation

# Code Javascript

```js
let elems ;
let mylist = "";
// https://stackoverflow.com/questions/54225477/get-element-by-part-of-class-name-javascript
elems = document.querySelectorAll("div[class^='ListView-module'], div[class*=' ListView-module']");

if (elems.length > 0) {
    mylist = "";
    let lines = document.querySelectorAll("li[class^='ListItem-module__listItem'], li[class*=' ListItem-module__listItem']");
    for (const line of lines) {
        let titles = line.querySelectorAll("a[class^='Title-module__anchor'], a[class*=' Title-module__anchor']");
        if(titles.length > 0) {
            let title = titles[0].getAttribute("href") ;
            if(mylist.length > 0) {mylist = mylist + "\n" + title;}
            else {mylist = title;}
        }
		else {console.log("ERROR: "+line);}
    }
    console.log(mylist + "\n");
}



```

À utiliser ensuite avec `retrievegitrepos` (dossier `~/bin`)
