eddie14 commited on
Commit
be6bbc3
1 Parent(s): a53458a
Files changed (1) hide show
  1. common_crawl.py +1 -1
common_crawl.py CHANGED
@@ -79,7 +79,7 @@ class CommonCrawl(datasets.GeneratorBasedBuilder):
79
  _open = lambda x: ArchiveIterator(requests.get(x, stream=True).raw, arc2warc=True) \
80
  if filepath.startswith("http") else lambda x: ArchiveIterator(open(x, "rb"))
81
  number = 0
82
- print("filepath::", filepath)
83
  for record in _open(filepath):
84
  if record.rec_type == 'response' and record.http_headers.get_header('Content-Type') == 'text/html':
85
  text = _decode_text(record.content_stream().read())
 
79
  _open = lambda x: ArchiveIterator(requests.get(x, stream=True).raw, arc2warc=True) \
80
  if filepath.startswith("http") else lambda x: ArchiveIterator(open(x, "rb"))
81
  number = 0
82
+ print("filepath::", _open)
83
  for record in _open(filepath):
84
  if record.rec_type == 'response' and record.http_headers.get_header('Content-Type') == 'text/html':
85
  text = _decode_text(record.content_stream().read())