MCPcopy Create free account
hub / github.com/ActiveState/code / getLinks

Function getLinks

recipes/Python/576551_Simple_Web_Crawler/recipe-576551.py:128–132  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

126 self.urls.append(url)
127
128def getLinks(url):
129 page = Fetcher(url)
130 page.fetch()
131 for i, url in enumerate(page):
132 print "%d. %s" % (i, url)
133
134def parse_options():
135 """parse_options() -> opts, args

Callers 1

mainFunction · 0.85

Calls 3

fetchMethod · 0.95
FetcherClass · 0.85
enumerateFunction · 0.50

Tested by

no test coverage detected