oduwsdl / archivenow

A Tool To Push Web Resources Into Web Archives
MIT License
403 stars 42 forks source link

Fixed default behaviour of warc handler when no agent is provided #47

Open biosafetylvl5 opened 3 years ago

biosafetylvl5 commented 3 years ago

Expected/new behaviour:

>>> from archivenow import archivenow
>>> archivenow.push("example.org", "warc", {"warc": "example"})
example.warc
['example.warc']

and example.warc is created.

Current behaviour:

>>> from archivenow import archivenow
>>> archivenow.push("example.org", "warc", {"warc": "example"})
[]

and no file created.