print ""
print "CS101 unit2-30"
print "Print all the links on a page"
print "- Solution: https://w...content-available-to-author-only...y.com/course/viewer#!/c-cs101/l-48753036/e-48727558/m-48683657"
print "My forum posts regarding this"
print "http://p...content-available-to-author-only...m.org/viewtopic.php?f=6&t=2699"
print "https://f...content-available-to-author-only...y.com/questions/100051898/help-me-debug-typeerror-unpack-non-sequence#cs101"
def print_all_links(page):
while True:
url, end_quote = get_next_target(page)
if url:
print url
page = page[end_quote:]
else:
break
def get_next_target(page):
start_link = page.find('link, this is a link, this is a link')