Both sides previous revisionPrevious revisionNext revision | Previous revision |
색상표 [2009/07/21 08:17] – suapapa | 색상표 [2013/08/03 05:04] (current) – external edit 127.0.0.1 |
---|
>>> import feedparser, pprint | >>> import feedparser, pprint |
>>> feed = feedparser.parse("http://kuler-api.adobe.com/rss/get.cfm?listtype=rating&key=YOURKEYHERE") | >>> feed = feedparser.parse("http://kuler-api.adobe.com/rss/get.cfm?listtype=rating&key=YOURKEYHERE") |
>>> kulerCCs = feed["items"] | >>> pprint.pprint(kulerCCs[0]) |
{'authorid': u'117768', | {'authorid': u'117768', |
'authorlabel': u'mariagroenlund', | 'authorlabel': u'mariagroenlund', |
'enclosures': [{}], | |
'guidislink': False, | |
'href': u'http://kuler-api.adobe.com/kuler/themeImages/theme_492199.png', | 'href': u'http://kuler-api.adobe.com/kuler/themeImages/theme_492199.png', |
'id': u'http://kuler.adobe.com/index.cfm#themeID/492199', | 'id': u'http://kuler.adobe.com/index.cfm#themeID/492199', |
'link': u'', | |
'links': [{'href': u'http://kuler.adobe.com/index.cfm#themeID/492199', | |
'rel': 'alternate', | |
'type': 'text/html'}, | |
{'length': u'1', 'rel': 'alternate', 'type': u'image/png'}], | |
'summary': u'<img src="http://kuler-api.adobe.com/kuler/themeImages/theme_492199.png" /><br />\n\t\t\t\t \n\t\t\t\t Artist: mariagroenlund<br />\n\t\t\t\t ThemeID: 492199<br />\n\t\t\t\t Posted: 06/02/2009<br />\n\t\t\t\t \n\t\t\t\t\t Tags: \n\t\t\t\t\t bluish, colorful, fresh, green, healthy, lime, orange, peacock, sparkling, vital\n\t\t\t\t <br />\t\n\t\t\t\t \n\t\t\t\t\tHex:\n\t\t\t\t\t004358, 1F8A70, BEDB39, FFE11A, FD7400', | 'summary': u'<img src="http://kuler-api.adobe.com/kuler/themeImages/theme_492199.png" /><br />\n\t\t\t\t \n\t\t\t\t Artist: mariagroenlund<br />\n\t\t\t\t ThemeID: 492199<br />\n\t\t\t\t Posted: 06/02/2009<br />\n\t\t\t\t \n\t\t\t\t\t Tags: \n\t\t\t\t\t bluish, colorful, fresh, green, healthy, lime, orange, peacock, sparkling, vital\n\t\t\t\t <br />\t\n\t\t\t\t \n\t\t\t\t\tHex:\n\t\t\t\t\t004358, 1F8A70, BEDB39, FFE11A, FD7400', |
'summary_detail': {'base': 'http://kuler-api.adobe.com/rss/get.cfm?listtype=rating&key=9F3D733B705F31E28018168D5717C2B0', | |
'language': None, | |
'type': 'text/html', | |
'value': u'<img src="http://kuler-api.adobe.com/kuler/themeImages/theme_492199.png" /><br />\n\t\t\t\t \n\t\t\t\t Artist: mariagroenlund<br />\n\t\t\t\t ThemeID: 492199<br />\n\t\t\t\t Posted: 06/02/2009<br />\n\t\t\t\t \n\t\t\t\t\t Tags: \n\t\t\t\t\t bluish, colorful, fresh, green, healthy, lime, orange, peacock, sparkling, vital\n\t\t\t\t <br />\t\n\t\t\t\t \n\t\t\t\t\tHex:\n\t\t\t\t\t004358, 1F8A70, BEDB39, FFE11A, FD7400'}, | |
'swatch': u'', | |
'swatchchannel1': u'0.992157', | |
'swatchchannel2': u'0.454902', | |
'swatchchannel3': u'0.0', | |
'swatchchannel4': u'0.0', | |
'swatchcolormode': u'rgb', | |
'swatchhexcolor': u'FD7400', | |
'swatchindex': u'4', | |
'themeauthor': u'', | |
'themecreatedat': u'20090602', | |
'themedownloadcount': u'1227', | |
'themeeditedat': u'20090613', | |
'themeid': u'492199', | |
'themeimage': u'http://kuler-api.adobe.com/kuler/themeImages/theme_492199.png', | |
'themeitem': u'', | |
'themerating': u'4', | |
'themeswatches': u'', | |
'themetags': u'bluish, colorful, fresh, green, healthy, lime, orange, peacock, sparkling, vital', | 'themetags': u'bluish, colorful, fresh, green, healthy, lime, orange, peacock, sparkling, vital', |
'themetitle': u'Vitamin C', | 'themetitle': u'Vitamin C', |
'title': u'Vitamin C', | 'title': u'Vitamin C', |
'title_detail': {'base': 'http://kuler-api.adobe.com/rss/get.cfm?listtype=rating&key=9F3D733B705F31E28018168D5717C2B0', | } |
'language': None, | |
'type': 'text/plain', | |
'value': u'Vitamin C'}, | |
'updated': u'Tue, 21 Jul 2009 01:06:09 PST', | |
'updated_parsed': (2009, 7, 21, 9, 6, 9, 1, 202, 0)} | |
</code> | </code> |
== references == | ====== references ====== |
*[[http://kuler.adobe.com/#themes/newest?time=30|Kuler]] | *[[http://kuler.adobe.com/#themes/newest?time=30|Kuler]] |
| *[[http://www.colourlovers.com/api|ColourLovers API]] |
*[[http://learn.adobe.com/wiki/display/kulerdev/A.%20Kuler%20API%20Documentation|A. Kuler API Documentation]] | *[[http://learn.adobe.com/wiki/display/kulerdev/A.%20Kuler%20API%20Documentation|A. Kuler API Documentation]] |
*[[http://feedparser.org/ feedparser]] | *[[http://feedparser.org/|feedparser]] |
| *[[http://registry.gimp.org/node/10325|Import Kuler (ASE) palettes]] |
| *[[http://www.colourlovers.com/|colorlovers]] |