This commit is contained in:
anon
2023-03-10 14:08:43 +01:00
commit a034dea430
6 changed files with 8425 additions and 0 deletions

16
OSFS_download.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
URL="https://www.opensocietyfoundations.org/grants/past?page="
if [ -n "$1" ]; then
DUMPFILE="$1"
else
DUMPFILE=dump.log
fi
echo '' > "$DUMPFILE"
I='0'
while true; do
echo "${URL}${I}:"
curl "${URL}${I}" | tee --append $DUMPFILE | grep '<li class="m-grantsDatabase__item">' &> /dev/null || break
I=$(expr $I + 1)
done