diff --git a/gallery_dl/extractor/ao3.py b/gallery_dl/extractor/ao3.py
index fae382c0..cb582023 100644
--- a/gallery_dl/extractor/ao3.py
+++ b/gallery_dl/extractor/ao3.py
@@ -70,6 +70,7 @@ class Ao3WorkExtractor(Ao3Extractor):
extr = text.extract_from(self.request(url).text)
fmts = {}
+ path = ""
download = extr(' class="download"', "")
for dl in text.extract_iter(download, ' href="', ""):
path, _, type = dl.rpartition('">')
@@ -95,6 +96,10 @@ class Ao3WorkExtractor(Ao3Extractor):
"series" : extr('
', ""),
"date" : text.parse_datetime(
extr('', "<"), "%Y-%m-%d"),
+ "date_completed": text.parse_datetime(
+ extr('>Completed:', "<"), "%Y-%m-%d"),
+ "date_updated" : text.parse_timestamp(
+ path.rpartition("updated_at=")[2]),
"words" : text.parse_int(
extr('', "<").replace(",", "")),
"chapters" : text.parse_int(
diff --git a/test/results/ao3.py b/test/results/ao3.py
index 9decc005..1fea4677 100644
--- a/test/results/ao3.py
+++ b/test/results/ao3.py
@@ -19,6 +19,8 @@ __tests__ = (
"chapters" : 27,
"comments" : range(800, 2000),
"date" : "dt:2023-06-11 00:00:00",
+ "date_completed": "dt:2024-05-10 00:00:00",
+ "date_updated" : "dt:2024-07-08 00:27:04",
"extension": "pdf",
"filename" : "The_Wildcard",
"id" : 47802076,