mirror of
https://github.com/PucelaBits/websegura.git
synced 2024-07-04 12:05:45 +02:00
chore: improve crawling code
This commit is contained in:
parent
28079c52c0
commit
80ccf8a8b4
|
@ -17,7 +17,7 @@ async function parse() {
|
|||
const files = glob.sync(['_data/{comunidades,provincias}/*.json', '_data/general.json']);
|
||||
return files
|
||||
.flatMap(file => JSON.parse(fs.readFileSync(file)).webs.map(x => beautify(x.url)))
|
||||
// .filter(outdated);
|
||||
.filter(outdated);
|
||||
}
|
||||
|
||||
// Mozilla espera un hostname (sin / final y sin indicar protocolo "http[s]://")
|
||||
|
|
Loading…
Reference in New Issue
Block a user