Hi All,
I am really new to the programming world and I am trying to solve a simple problem for my python course-
I have to write a script that retrieves Columbia University's webpage and prints
only the titles of the news stories on the main page. I have to use regular expression and string operations
I wrote this to start with but I am really confused in taking any further steps-
import urllib
sock = urllib.urlopen('http://www.columbia.edu/')
htmlSource = sock.read()
sock.close()
print htmlSource
Any quick help would be highly appreciated. It would be great if somebody can send me a sample code and I can look at it to read and understand.
I am really short of time so a quick response would be apreciated !
Thanks,
Abhi