Skip to content

Instantly share code, notes, and snippets.

@simonw
Created December 8, 2020 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonw/f6e3cd29fde5d15ea9cd746c942046ba to your computer and use it in GitHub Desktop.
Save simonw/f6e3cd29fde5d15ea9cd746c942046ba to your computer and use it in GitHub Desktop.
Fetch a newline-separated list of Datasette plugins tagged datasette-io and datasette-plugin using curl
curl -s "https://github-to-sqlite.dogsheep.net/github.csv?sql=$(echo '
select
full_name
from
repos
where
rowid in (
select
repos.rowid
from
repos,
json_each(repos.topics) j
where
j.value = "datasette-io"
)
and rowid in (
select
repos.rowid
from
repos,
json_each(repos.topics) j
where
j.value = "datasette-plugin"
)
order by
updated_at desc
' | python3 -c \
'import sys; import urllib.parse; print(urllib.parse.quote(sys.stdin.read()))')" \
| tail -n +2