Skip to content

Instantly share code, notes, and snippets.

@nerdfiles
Last active December 17, 2015 17:59
Show Gist options
  • Save nerdfiles/5650085 to your computer and use it in GitHub Desktop.
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"
#!/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