Last active
December 17, 2015 17:59
-
-
Save nerdfiles/5650085 to your computer and use it in GitHub Desktop.
Synesthor Thinks (get a color from colorrrs.com): alias synesthor_thinks="py /Users/nerdfiles/Tools/colorrrs/colorrrs.py | pbcopy"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from pyquery import PyQuery as pq | |
from lxml import etree | |
import urllib | |
d = pq(url="http://colorrrs.com/") | |
def grab_color(): | |
synesthor_thinks = d('h1').text() | |
print synesthor_thinks | |
if __name__ == '__main__': | |
grab_color() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment