every_prompt / bin /get_seed_urls.sh
Dmitry Chaplinsky
Code and amendments to the README
77f91c1
raw
history blame
No virus
382 Bytes
#!/bin/bash
# download file containing urls
curl http://webdatacommons.org/structureddata/2022-12/files/file.list > urls.txt
# create output file
touch output.txt
# use parallel command to download/grep in parallel
cat urls.txt | pv -cN Input | parallel -j 4 "curl -s {} | zcat | grep -e '<http://schema.org/FAQPage>' -e '<http://schema.org/HowTo>'" | pv -cN Output > output.txt