Skip to content

Commit

Permalink
v4.7 - see CHANGELOG.md for details
Browse files Browse the repository at this point in the history
  • Loading branch information
xnl-h4ck3r committed Dec 9, 2024
1 parent 604ec29 commit ed75caf
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Changelog

- v4.7

- New

- BUG FIX: If an input domain has unicode in, e.g `xñl.uk`, then it will be converted to the punycode version, e.g. `xn--xl-zja.uk` to use that as the input instead. This will ensure the URLs and responses are correctly retrieved from the archive sources.

- v4.6

- New
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<center><img src="https://github.com/xnl-h4ck3r/waymore/blob/main/waymore/images/title.png"></center>

## About - v4.6
## About - v4.7

The idea behind **waymore** is to find even more links from the Wayback Machine than other existing tools.

Expand Down
2 changes: 1 addition & 1 deletion waymore/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__="4.6"
__version__="4.7"
11 changes: 10 additions & 1 deletion waymore/waymore.py
Original file line number Diff line number Diff line change
Expand Up @@ -3325,7 +3325,16 @@ def main():
if subDomain != '':
inputIsSubDomain = True
subDomain = subDomain+'.'
argsInputHostname = subDomain+tldExtract.domain+'.'+tldExtract.suffix

# Convert domain to punycode
punyCode = tldExtract.domain.encode("idna").decode("ascii")
if tldExtract.domain != punyCode:
writerr(colored(getSPACER(f'IMPORTANT: You passed a domain that contains unicode characters, so this will be converted to Punycode when retrieving from archived sources, i.e. {punyCode}.{tldExtract.suffix}\n'),'yellow'))
argsInput = argsInput.replace(tldExtract.domain,punyCode)
rootDomain = punyCode
else:
rootDomain = tldExtract.domain
argsInputHostname = subDomain+rootDomain+'.'+tldExtract.suffix

# Warn user if a sub domains may have been passed
if inputIsSubDomain:
Expand Down

0 comments on commit ed75caf

Please sign in to comment.