MCPcopy
hub / github.com/talebook/talebook / visit_board

Function visit_board

tools/spider.py:78–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76
77
78def visit_board():
79 path = "/thread-htm-fid-224-page-%d.html"
80 for idx in range(0, 1):
81 rsp = get(path % idx)
82 logging.debug(rsp)
83 for tid, name in re.findall(re_thread, rsp.text):
84 visit_thread(tid, name)
85 open(done_path, "w").write("\n".join(done_urls))
86
87
88def main():

Callers 1

mainFunction · 0.70

Calls 4

visit_threadFunction · 0.85
openFunction · 0.85
writeMethod · 0.80
getFunction · 0.70

Tested by

no test coverage detected