backmeupplz / archivelinksbot Goto Github PK
View Code? Open in Web Editor NEWTelegram bot that saves links to web archive
License: MIT License
Telegram bot that saves links to web archive
License: MIT License
Sometimes bot's reply is pretty long and there is no point in showing that link entirely. As an idea you could replace text for to Link
Also, if this will be implemented, if bot will find more links into one message, it could create just one reply with something like: Link1, Link2, etc...
не архивирует
Просто пара замечаний.
Парсер идентифицирует ссылки вида
http://eepsites.i2p,
http://b5ojwufuhmqw4vpaofcp5ejwufv6n77tlk7mjcpttnvou7gkdtsiljad.onion
как валидные сайты клирнета, но web-archive не может их сохранять. whatwg-url такое не умеет отфильтровывать, поэтому можно просто добавить проверку, чтобы концовка урла не содержала ".onion" или ".i2p". Также, мне кажется, стоит исключить архивирование "127.0.0.1"
Существуют домены из символов локальных алфавитов по типу кто.рф или 👊.ws — они распознаются ботом, но в исходном виде web-archive их не может обработать, как я понимаю (бот печатает, а потом просто перестаёт). Почему бы не переводить их в punycode чем-то типа этого, например.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.