Categoria: cheatsheet,python

Python cheasheet

Get content of URL 12import urllib2print urllib2.urlopen('http://google.com').read() Remove chars and split by , from a string convert to list 1'jshfjshfjsh[]'.translate(None, '[] "\n').split(',') Dif