Skip to content

Commit

Permalink
Merge pull request #100 from spacewaterbear/main
Browse files Browse the repository at this point in the history
max_requests_per_second cannot be zero otherwise it will break here :…
  • Loading branch information
hynky1999 authored Feb 13, 2024
2 parents f8034f3 + 5b3ddd4 commit b324fe2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmoncrawl/integrations/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,6 @@ def run_download(args: argparse.Namespace):
max_crawls_per_file = (
args.max_crawls_per_file if mode == DownloadOutputFormat.RECORD else 1
)
max_requests_per_second = (
args.max_requests_per_second if mode == DownloadOutputFormat.RECORD else 0
)
# HTML exlusives
encoding = args.encoding if mode == DownloadOutputFormat.HTML else None
download_method = (
Expand All @@ -357,7 +354,7 @@ def run_download(args: argparse.Namespace):
limit=args.limit,
max_retry=args.max_retry,
sleep_base=args.sleep_base,
max_requests_per_second=max_requests_per_second,
max_requests_per_second=args.max_requests_per_second,
mode=mode,
max_crawls_per_file=max_crawls_per_file,
encoding=encoding,
Expand Down

0 comments on commit b324fe2

Please sign in to comment.