Корректность парсинга url #20
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
backmeupplz/archivelinksbot#20
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Просто пара замечаний.
Парсер идентифицирует ссылки вида
http://eepsites.i2p,
http://b5ojwufuhmqw4vpaofcp5ejwufv6n77tlk7mjcpttnvou7gkdtsiljad.onion
как валидные сайты клирнета, но web-archive не может их сохранять. whatwg-url такое не умеет отфильтровывать, поэтому можно просто добавить проверку, чтобы концовка урла не содержала ".onion" или ".i2p". Также, мне кажется, стоит исключить архивирование "127.0.0.1"
Существуют домены из символов локальных алфавитов по типу кто.рф или 👊.ws — они распознаются ботом, но в исходном виде web-archive их не может обработать, как я понимаю (бот печатает, а потом просто перестаёт). Почему бы не переводить их в punycode чем-то типа этого, например.
Буду рад пулл реквесту!
А я не знаю тайпскрипта :D
@Sunlight-Rim никогда не поздно приобщиться!
Thank you for taking the time to report this, and sorry it sat without an answer for so long. I'm cleaning up old issues and closing this one because it has been inactive for a long time. If it still affects you, please open a new issue with the current details and I'll take a look.