Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
128
def
getLinks(url):
129
page = Fetcher(url)
130
page.fetch()
131
for
i, url in enumerate(page):
132
print
"%d. %s"
% (i, url)
133
134
def
parse_options():
135
""
"parse_options() -> opts, args
Callers
1
main
Function · 0.85
Calls
3
fetch
Method · 0.95
Fetcher
Class · 0.85
enumerate
Function · 0.50
Tested by
no test coverage detected