Scraper for the fine art on getty.edu
Project description
********
GettyArt
********
Overview
========
This package contains a scraper for Art!
The *getty_art* package uses the search API of the `Getty Museum
<http://www.getty.edu>`_ to deliver the finest art directly to a local drive
near to you.
Usage
=====
Grabbing some fine art using this package is super simple:
.. sourcecode :: py
import getty_art
scraper = getty_art.Scraper(category='Paintings')
filenames = scraper.scrape(3)
This snippet downloads three paintings to a temporary directory and binds the
locations of the downloaded pieces of art to the filenames variable.
--------------------------------------------------------------------------------
.. image:: http://www.getty.edu/art/collections/images/thumb/00058201-T.JPG
.. image:: http://www.getty.edu/art/collections/images/thumb/00081001-T.JPG
.. image:: http://www.getty.edu/art/collections/images/thumb/00078701-T.JPG
--------------------------------------------------------------------------------
You can also use the scraper from the command line. For instance, the following
command downloads 2 watercolors to your current directory.
.. sourcecode :: sh
python -m getty_art.getty_art 'Watercolors (paintings)' --limit=2
--------------------------------------------------------------------------------
.. image:: http://www.getty.edu/collection/GRI/thumb/grioc0005428-T.jpg
.. image:: http://www.getty.edu/collection/GRI/thumb/grioc0005417-T.jpg
--------------------------------------------------------------------------------
GettyArt
********
Overview
========
This package contains a scraper for Art!
The *getty_art* package uses the search API of the `Getty Museum
<http://www.getty.edu>`_ to deliver the finest art directly to a local drive
near to you.
Usage
=====
Grabbing some fine art using this package is super simple:
.. sourcecode :: py
import getty_art
scraper = getty_art.Scraper(category='Paintings')
filenames = scraper.scrape(3)
This snippet downloads three paintings to a temporary directory and binds the
locations of the downloaded pieces of art to the filenames variable.
--------------------------------------------------------------------------------
.. image:: http://www.getty.edu/art/collections/images/thumb/00058201-T.JPG
.. image:: http://www.getty.edu/art/collections/images/thumb/00081001-T.JPG
.. image:: http://www.getty.edu/art/collections/images/thumb/00078701-T.JPG
--------------------------------------------------------------------------------
You can also use the scraper from the command line. For instance, the following
command downloads 2 watercolors to your current directory.
.. sourcecode :: sh
python -m getty_art.getty_art 'Watercolors (paintings)' --limit=2
--------------------------------------------------------------------------------
.. image:: http://www.getty.edu/collection/GRI/thumb/grioc0005428-T.jpg
.. image:: http://www.getty.edu/collection/GRI/thumb/grioc0005417-T.jpg
--------------------------------------------------------------------------------
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
GettyArt-0.0.1.tar.gz
(3.9 kB
view details)
File details
Details for the file GettyArt-0.0.1.tar.gz
.
File metadata
- Download URL: GettyArt-0.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43c63a3fafffde83ca109616494188d78b88389a4f999e62cdeec46d81c203dc |
|
MD5 | c68147999da91eed2cd1445f57bcda10 |
|
BLAKE2b-256 | 7f071485bae9a87a125f75fdb2e1a52975b41d59301d2d3e39bf59afd22161fa |