瀏覽代碼

Handle URLs with queries and fragments

tags/v1.0
JustAnotherArchivist 1 年之前
父節點
當前提交
47fe0a4e70
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      codearchiver/core.py

+ 2
- 1
codearchiver/core.py 查看文件

@@ -383,7 +383,8 @@ class Module(metaclass = ModuleMeta):
self._storage = storage
self._id = id_
if self._id is None and type(self).name is not None:
self._id = f'{type(self).name}_{self._url.replace("/", "_")}_{datetime.datetime.utcnow():%Y%m%dT%H%M%SZ}'
mangledUrl = self._url.replace('/', '_').replace('?', '_').replace('&', '_').replace('#', '_')
self._id = f'{type(self).name}_{mangledUrl}_{datetime.datetime.utcnow():%Y%m%dT%H%M%SZ}'
self._httpClient = HttpClient()

@abc.abstractmethod


Loading…
取消
儲存