Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am tokawpl on github.
  • I am genickstarre (https://keybase.io/genickstarre) on keybase.
  • I have a public key whose fingerprint is 5DBE 72BA AF33 EF8E 7F89 1F0C 63D8 74C4 FA6C 06FE

To claim this, I am signing this object:

@tokawpl
tokawpl / scrapper.py
Created December 7, 2017 15:31
code snippet for getting all "hsl"-values with their corresponding name from http://htmlcolorcodes.com/color-names/
import zlib
from urllib import request
from bs4 import BeautifulSoup
resource = request.urlopen("http://htmlcolorcodes.com/color-names/")
content = resource.read()
decompressed_content = zlib.decompress(content, 16+zlib.MAX_WBITS)