MCPcopy Create free account
hub / github.com/EZ-hwh/AutoScraper / __init__

Method __init__

utils/html_utils.py:10–13  ·  view source on GitHub ↗
(self, html, step_len = 5000, len_func = len)

Source from the content-addressed store, hash-verified

8
9class StepTree:
10 def __init__(self, html, step_len = 5000, len_func = len):
11 self.soup = BeautifulSoup(html)
12 self.step_len = step_len
13 self.len_func = len_func
14
15 def __iter__(self):
16 if self.len_func(str(self.soup)) < self.step_len:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected