Skip to content

Instantly share code, notes, and snippets.

@mvidalgarcia
Last active March 1, 2016 15:28
Show Gist options
  • Save mvidalgarcia/bf5489c7634ef7ca223a to your computer and use it in GitHub Desktop.
Save mvidalgarcia/bf5489c7634ef7ca223a to your computer and use it in GitHub Desktop.
Imports all artists/artworks from Tate collection (https://github.com/tategallery/collection) dataset to a mongodb database.
# First place in the artists directory
cd collection-master/artists
find * -type f | while read col; do
mongoimport -d tate -c artists --file $col;
done
# First place in the artworks directory
cd collection-master/artworks
find * -type f | while read col; do
mongoimport -d tate -c artworks --file $col;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment