Skip to content

Instantly share code, notes, and snippets.

Using GitHub
1.Sign up for Github - make yourself an account with a cool name!
2. Start - from your GitHub account, create a new repositiories by clicking Tab then click "New" green button. Or you can "fork" (dirty sounding, isn't it?) from someone elses page. This is like making your own copy. Under this Repository, you can create multiple files by clicking plus button next to your repository(folder) name.
3. Give a name that will becomes your repository(repo), equalvent to "directory folder in explorer".
4. After creating account and repository, you need to download actual git in your local machine or you can start with the link.
#Import CSV file from URL that has latest CSO status with location names and status
#This script only displays on the screen. Need to create list data into a file format.
import csv
import urllib
#URL address that contains cso status with location name. This includes king county and SPU's data
url = "http://your.kingcounty.gov/dnrp/library/wastewater/cso/img/CSO.CSV"
webpage = urllib.urlopen(url)
datareader = csv.reader(webpage)