To access peak flow using USGS Station Code
Step1: Define a function for obtaining the peak flow data from USGS Surface Data Portal a) Create the URLS
b) Access and collect the data from the USGS WebPage
c) Store the data as raw file
Step2: In the main code, the user is prompted to input the required USGS Gauge Station. The main code will call the function defined in Step 1 and downloads the peak flow data as a text file.
The main packages used in this code - urllib.