Skip to content

Commit

Permalink
Update docs on local sitemaps and file bug
Browse files Browse the repository at this point in the history
  • Loading branch information
agude committed Aug 10, 2020
1 parent 44c768c commit cffa75d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions wayback_machine_archiver/archiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import xml.etree.ElementTree as ET

# Library version
__version__ = "1.7.0"
__version__ = "1.7.1"


def format_archive_url(url):
Expand Down Expand Up @@ -116,7 +116,7 @@ def main():
"--sitemaps",
nargs="+",
default=[],
help="one or more URLs to sitemaps listing pages to archive",
help="one or more URIs to sitemaps listing pages to archive; local paths must be prefixed with 'file://'",
required=False,
)
parser.add_argument(
Expand Down Expand Up @@ -199,6 +199,9 @@ def main():
# Archive the sitemap as well, if requested
if args.archive_sitemap:
logging.info("Archiving sitemaps")
# This will fail with using local sitemaps:
#
# https://github.com/agude/wayback-machine-archiver/issues/16
archive_urls += map(format_archive_url, args.sitemaps)

# And URLs from file
Expand Down

0 comments on commit cffa75d

Please sign in to comment.