Skip to content

Commit

Permalink
Add stderr info
Browse files Browse the repository at this point in the history
  • Loading branch information
KarimPwnz committed Sep 15, 2023
1 parent 21fe7a9 commit 4e2f874
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions waybacked/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def run(self):
pages_count = self.api.get_pages_count(self.search)
except:
raise WaybackSearchError("Couldn't get number of archive pages")
print(f"Found {pages_count} pages", file=sys.stderr)
for page in range(pages_count):
print(f"Getting page: {page + 1}/{pages_count}", file=sys.stderr)
# Split lines and remove last empty line
data = self.api.get_page_text(self.search, page).split("\n")[:-1]
if data:
Expand Down

0 comments on commit 4e2f874

Please sign in to comment.