是关于下载 google art project 的原始图片的问题,我 google 翻了个底朝天。就找到 2 个方法,一个是 ruby 写的程序,但是那位作者表示已经失效了,我也尝试过,确实无效了。
另外一个是 python 的程序,全是法语, http://www.louafi.fr/blog/2012/05/telecharger-les-images-de-google-art-project/ (希望哪位帮我看看,谢谢先) .我 google 翻译成英语拜读之后,但是怎么都不明白怎么操作的。
我就我所理解的全力按照他的教程来做:
我的环境:Mac OS X 10.8.2 python: 2.7.2 安装 PyV8 之后,imageMagick 也装了,为了配合他的意思,wo 还另外下载了 imageMagick 的包放在他指定的地方。
这是我的尝试过的错误方式:
$ python
Python 2.7.2 (default, Jun 20 2012, 16:23:33)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> telechargerOeuvre('http://www.googleartproject.com/collection/musee-dorsay-paris/artwork/the-saint-lazare-station-claude-monet/508102/', 'Monet_-_Gare_Saint-Lazare.jpg', 3)
##返回
>>>Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'telechargerOeuvre' is not defined
extractionGoogleArtProject ❯ python ⏎
Python 2.7.2 (default, Jun 20 2012, 16:23:33)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> extractionGoogleArtProject telechargerOeuvre('http://www.googleartproject.com/collection/musee-dorsay-paris/artwork/the-saint-lazare-station-claude-monet/508102/', 'Monet_-_Gare_Saint-Lazare.jpg', 3)
File "<stdin>", line 1
extractionGoogleArtProject telechargerOeuvre('http://www.googleartproject.com/collection/musee-dorsay-paris/artwork/the-saint-lazare-station-claude-monet/508102/', 'Monet_-_Gare_Saint-Lazare.jpg', 3)
^
SyntaxError: invalid syntax
>>>
>>> extractionGoogleArtProject
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'extractionGoogleArtProject' is not defined
>>> import extractionGoogleArtProject
>>> telechargerOeuvre('http://www.googleartproject.com/collection/musee-dorsay-paris/artwork/the-saint-lazare-station-claude-monet/508102/', 'Monet_-_Gare_Saint-Lazare.jpg', 3)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'telechargerOeuvre' is not defined
>>>