pywaybackup 3.4.0__tar.gz → 3.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pywaybackup-3.4.0/pywaybackup.egg-info → pywaybackup-3.4.1}/PKG-INFO +1 -1
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/pyproject.toml +1 -1
- pywaybackup-3.4.0/pywaybackup/PyWaybackup.py → pywaybackup-3.4.1/pywaybackup/PyWayBackup.py +42 -43
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/pywaybackup/SnapshotCollection.py +0 -3
- pywaybackup-3.4.1/pywaybackup/__init__.py +1 -0
- {pywaybackup-3.4.0 → pywaybackup-3.4.1/pywaybackup.egg-info}/PKG-INFO +1 -1
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/pywaybackup.egg-info/SOURCES.txt +1 -1
- pywaybackup-3.4.0/pywaybackup/__init__.py +0 -1
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/LICENSE +0 -0
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/README.md +0 -0
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/pywaybackup/Arguments.py +0 -0
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/pywaybackup/Converter.py +0 -0
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/pywaybackup/Exception.py +0 -0
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/pywaybackup/Verbosity.py +0 -0
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/pywaybackup/Worker.py +0 -0
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/pywaybackup/archive_download.py +0 -0
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/pywaybackup/archive_save.py +0 -0
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/pywaybackup/db.py +0 -0
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/pywaybackup/helper.py +0 -0
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/pywaybackup/main.py +0 -0
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/pywaybackup.egg-info/dependency_links.txt +0 -0
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/pywaybackup.egg-info/entry_points.txt +0 -0
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/pywaybackup.egg-info/requires.txt +0 -0
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/pywaybackup.egg-info/top_level.txt +0 -0
- {pywaybackup-3.4.0 → pywaybackup-3.4.1}/setup.cfg +0 -0
|
@@ -190,46 +190,45 @@ class PyWayBackup:
|
|
|
190
190
|
|
|
191
191
|
if self.save:
|
|
192
192
|
archive_save.save_page(self.url)
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
os._exit(1)
|
|
193
|
+
|
|
194
|
+
else:
|
|
195
|
+
|
|
196
|
+
db.init(self.dbfile, self.query_identifier)
|
|
197
|
+
sc.init(self.mode)
|
|
198
|
+
|
|
199
|
+
if not self.save:
|
|
200
|
+
archive_download.startup()
|
|
201
|
+
|
|
202
|
+
try:
|
|
203
|
+
archive_download.query_list(
|
|
204
|
+
self.csvfile,
|
|
205
|
+
self.cdxfile,
|
|
206
|
+
self.range,
|
|
207
|
+
self.limit,
|
|
208
|
+
self.start,
|
|
209
|
+
self.end,
|
|
210
|
+
self.explicit,
|
|
211
|
+
self.filetype,
|
|
212
|
+
self.statuscode,
|
|
213
|
+
self.domain,
|
|
214
|
+
self.subdir,
|
|
215
|
+
self.filename,
|
|
216
|
+
)
|
|
217
|
+
archive_download.download_list(self.output, self.retry, self.no_redirect, self.delay, self.workers)
|
|
218
|
+
except KeyboardInterrupt:
|
|
219
|
+
print("\nInterrupted by user\n")
|
|
220
|
+
self.keep = True
|
|
221
|
+
signal.signal(signal.SIGINT, signal.SIG_IGN)
|
|
222
|
+
|
|
223
|
+
except Exception as e:
|
|
224
|
+
self.keep = True
|
|
225
|
+
ex.exception(message="", e=e)
|
|
226
|
+
|
|
227
|
+
finally:
|
|
228
|
+
sc.csv_create(self.csvfile)
|
|
229
|
+
sc.fini()
|
|
230
|
+
vb.fini()
|
|
231
|
+
|
|
232
|
+
if not self.keep:
|
|
233
|
+
os.remove(self.dbfile) if os.path.exists(self.dbfile) else None
|
|
234
|
+
os.remove(self.cdxfile) if os.path.exists(self.cdxfile) else None
|
|
@@ -194,9 +194,6 @@ class SnapshotCollection:
|
|
|
194
194
|
cls.db.cursor.execute("UPDATE snapshot_tbl SET response = NULL WHERE response = 'LOCK'") # reset locked to unprocessed
|
|
195
195
|
cls.db.cursor.execute("SELECT * FROM csv_view WHERE response IS NOT NULL") # only write processed snapshots
|
|
196
196
|
headers = [description[0] for description in cls.db.cursor.description]
|
|
197
|
-
if "snapshot_id" in headers:
|
|
198
|
-
snapshot_id_index = headers.index("snapshot_id")
|
|
199
|
-
headers.pop(snapshot_id_index)
|
|
200
197
|
with open(csvfile, "w", encoding="utf-8") as f:
|
|
201
198
|
writer = csv.writer(f)
|
|
202
199
|
writer.writerow(headers)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .PyWayBackup import PyWayBackup
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from .PyWaybackup import PyWayBackup
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|