Skip to content

Commit

Permalink
update: removed load_serp, see load_html in ws.webutils
Browse files Browse the repository at this point in the history
  • Loading branch information
gitronald committed Nov 14, 2023
1 parent 4a1e6c3 commit 5dfc9c9
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions WebSearcher/searchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,19 +218,6 @@ def save_serp(self, save_dir='.', append_to=''):

with open(fp, 'w') as outfile:
outfile.write(self.html)

def load_serp(self, serp_id:str, save_dir='.'):
"""Load SERP from file
Args:
serp_id (str): A unique identifier for the SERP to load
save_dir (str, optional): Load results from `save_dir/{serp_id}.html`
"""

fp = os.path.join(save_dir, f'{serp_id}.html')
with open(fp, 'r') as file:
self.html = file.read()
self.serp_id = serp_id


def parse_results(self, save_dir='.'):
Expand Down

0 comments on commit 5dfc9c9

Please sign in to comment.