Простой, но мощный скрипт для скачивания Instagram Reels прямо на ваш Android-смартфон через Termux. Никаких заморочек - просто копируете ссылку на рилс и готово! 🚀
- Скачивание Instagram Reels в один клик
- Автоматическое сохранение в папку Movies/Instagram
- Push-уведомления о статусе загрузки
- Сохранение актуальных метаданных видео
- Виджет для быстрого доступа с главного экрана
- Не требует логина в Instagram
- Android смартфон
- F-Droid - безопасный магазин приложений для Android (скачать тут)
- Установленные через F-Droid приложения:
- Разрешения для Termux:
- Доступ к хранилищу
- Отображение поверх других приложений
⚠️ Важно: Устанавливайте все приложения Termux только через F-Droid! Версии из Google Play больше не поддерживаются и могут работать некорректно.
-
Установите все необходимые приложения через F-Droid:
- Termux
- Termux:API
- Termux:Widget
-
Настройте разрешения для Termux:
- Откройте Настройки Android
- Перейдите в раздел "Приложения" (или "Управление приложениями")
- Найдите в списке Termux
- Выберите "Другие разрешения" (или "Дополнительные разрешения")
- Включите переключатель "Отображать поверх других приложений"
📝 Примечание: Названия разделов в настройках Android могут отличаться в зависимости от производителя смартфона и версии системы. Если не можете найти нужный пункт - воспользуйтесь поиском по настройкам, указав "Termux" или "поверх других приложений".
- Откройте Termux и вставьте следующую команду:
curl -s https://raw.githubusercontent.com/sandexzx/InstagramDownloaderWidget/main/SetupDownloader.sh | bash- Дождитесь завершения установки. Скрипт автоматически:
- Установит все необходимые зависимости
- Создаст нужные директории
- Настроит скрипты
- Сделает их исполняемыми
После успешной установки скрипта необходимо добавить виджет на главный экран:
- На главном экране Android найдите свободное место
- Нажмите и удерживайте это место до появления меню
- Выберите "Виджеты" (или проведите по экрану, чтобы перейти к списку виджетов)
- Найдите в списке "Termux Widget" (может потребоваться прокрутка)
- Выберите виджет и перетащите его на главный экран
- В появившемся списке скриптов выберите "download_reel"
Теперь виджет готов к использованию! Просто скопируйте ссылку на понравившийся рилс и нажмите на виджет - скрипт сделает всю работу за вас 😎
- Скопируйте ссылку на понравившийся рилс
- Нажмите на виджет "Download Reel" на главном экране
- Готово! Видео появится в папке Movies/Instagram
~/.shortcuts/download_reel└── $HOME
├── scripts/
│ └── download_reel.py # Основной скрипт загрузки
├── .shortcuts/
│ └── download_reel # Скрипт-шорткат для виджета
└── storage/shared/Movies/Instagram/
└── ... # Загруженные видео
Скрипт использует:
instaloaderдля загрузки контентаffmpegдля работы с метаданнымиtermux-apiдля уведомлений и доступа к буферу обмена
- Скрипт работает только с публичными рилсами
- Используйте ответственно и уважайте авторские права
- Загруженный контент предназначен только для личного использования
-
Ошибка "Invalid Link"
- Убедитесь, что ссылка начинается с "instagram.com" и содержит "/reel/"
-
Ошибка "No URL provided"
- Проверьте, что ссылка скопирована в буфер обмена
-
Нет доступа к хранилищу
termux-setup-storage
-
Виджет не работает
- Проверьте, установлен ли Termux:Widget
- В настройках Android разрешите Termux отображаться поверх других приложений
- Перезапустите Termux после выдачи разрешений
Делайте что хотите, just give credit 😉
Баги нашли? Есть идеи по улучшению? Welcome:
- Форкните репозиторий
- Создайте ветку для фичи (
git checkout -b feature/AmazingFeature) - Закоммитьте изменения (
git commit -m 'Add some AmazingFeature') - Пушните в ветку (
git push origin feature/AmazingFeature) - Откройте Pull Request
- Создайте Issue в этом репозитории
- Напишите мне в Telegram
A lightweight yet powerful script for downloading Instagram Reels directly to your Android smartphone via Termux. No complications - just copy the reel link and you're good to go! 🚀
- One-click Instagram Reels downloading
- Automatic saving to Movies/Instagram folder
- Push notifications for download status
- Up-to-date video metadata preservation
- Home screen widget for quick access
- No Instagram login required
- Android smartphone
- F-Droid - secure Android app store (download here)
- The following apps installed via F-Droid:
- Required Termux permissions:
- Storage access
- Display over other apps
⚠️ Important: Install all Termux applications exclusively through F-Droid! Google Play versions are no longer maintained and may not work correctly.
-
Install all required applications via F-Droid:
- Termux
- Termux:API
- Termux:Widget
-
Configure Termux permissions:
- Open Android Settings
- Go to "Apps" (or "App management")
- Find Termux in the list
- Select "Additional permissions" (or "Other permissions")
- Enable "Display over other apps" toggle
📝 Note: The names of settings sections may vary depending on your smartphone manufacturer and Android version. If you can't find the required option - use the settings search function, looking for "Termux" or "display over other apps".
- Open Termux and paste the following command:
curl -s https://raw.githubusercontent.com/sandexzx/InstagramDownloaderWidget/main/SetupDownloader.sh | bash- Wait for the installation to complete. The script will automatically:
- Install all necessary dependencies
- Create required directories
- Set up scripts
- Make them executable
After successfully installing the script, you need to add the widget to your home screen:
- Find an empty space on your Android home screen
- Press and hold that space until a menu appears
- Select "Widgets" (or swipe to access the widgets list)
- Look for "Termux Widget" in the list (you might need to scroll)
- Select and drag the widget to your home screen
- From the scripts list that appears, choose "download_reel"
Your widget is now ready to use! Just copy any reel link and tap the widget - the script will handle everything else 😎
- Copy the link of the reel you want to download
- Tap the "Download Reel" widget on your home screen
- Done! The video will appear in the Movies/Instagram folder
~/.shortcuts/download_reel└── $HOME
├── scripts/
│ └── download_reel.py # Main download script
├── .shortcuts/
│ └── download_reel # Widget shortcut script
└── storage/shared/Movies/Instagram/
└── ... # Downloaded videos
The script utilizes:
instaloaderfor content downloadingffmpegfor metadata manipulationtermux-apifor notifications and clipboard access
- Script works only with public reels
- Use responsibly and respect copyright
- Downloaded content is for personal use only
-
"Invalid Link" Error
- Ensure the link starts with "instagram.com" and contains "/reel/"
-
"No URL provided" Error
- Verify that the link is copied to clipboard
-
Storage Access Issues
termux-setup-storage
-
Widget not working
- Verify that Termux:Widget is installed
- Enable "Display over other apps" permission for Termux in Android settings
- Restart Termux after granting permissions
Do whatever you want, just give credit 😉
Found bugs? Have ideas for improvements? You're welcome to contribute:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Create an Issue in this repository
- Reach out via Telegram
The script requires the following Python packages:
- instaloader
- beautifulsoup4
- requests
- ffmpeg-python
And the following Termux packages:
- python
- termux-api
- ffmpeg
The script performs the following operations:
- Extracts the reel's shortcode from the URL
- Downloads the video using instaloader
- Updates the video metadata to current date/time
- Moves the file to the Movies/Instagram directory
- Sends a notification about the download status
- Cleans up temporary files
-
Download fails immediately
- Check your internet connection
- Verify that the reel is from a public account
- Ensure Termux has storage permissions
-
Widget doesn't appear
- Reinstall Termux:Widget
- Ensure the shortcut script is properly placed in ~/.shortcuts
-
Video doesn't appear in gallery
- Try running
termux-media-scanmanually - Check if the Movies/Instagram directory exists
- Verify storage permissions
- Try running
- Works on Android 7.0 and above
- Tested on various Android distributions
- Compatible with most modern Android file managers