Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/walkoud/media-downloader-ez
A npm package to download video from url (insta, youtube, tiktok ...) to discord.
https://github.com/walkoud/media-downloader-ez
discord download downloader instagram js media nodejs tiktok twitter video youtube
Last synced: about 2 months ago
JSON representation
A npm package to download video from url (insta, youtube, tiktok ...) to discord.
- Host: GitHub
- URL: https://github.com/walkoud/media-downloader-ez
- Owner: Walkoud
- Created: 2024-06-19T11:18:40.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-31T13:58:41.000Z (4 months ago)
- Last Synced: 2024-10-31T09:42:10.368Z (about 2 months ago)
- Topics: discord, download, downloader, instagram, js, media, nodejs, tiktok, twitter, video, youtube
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/media-downloader-ez
- Size: 28.3 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![Multi_Color_Bar](https://github.com/Walkoud/CS2-Auto-Accept/assets/38588921/3f57ad10-c80c-457a-9f49-679558eb2f79)
# media-downloader-ez
A npm package to download video from url (insta, youtube, tiktok, X...) .Autocrop : auto crop video to remove black bars
![image](https://github.com/user-attachments/assets/f53e9f13-98a4-4d5e-a2e1-fa67f959f8f0)## Exemple ez
```js
const MediaDownloader = require('media-downloader-ez');let url = "http://"
MediaDownloader(url, {autocrop: true}); // auto crop black bars (like tiktok, or insta videos)
```## Exemple for discord js :
```js
const MediaDownloader = require('media-downloader-ez');const Discord = require('discord.js-v11-stable');
const client = new Discord.Client({
disableEveryone: true
});client.on('message', async (message) => {
try {
if(message.content.startsWith('!download') && message.content.includes('http')){
let attachment = await MediaDownloader(message.content, {autocrop: true});
message.channel.send({ content: `Téléchargé par: \`${message.author.username}\``, files: [attachment] });
}} catch (error) {
console.error('Erreur lors du téléchargement de la vidéo :', error);
message.reply('Une erreur est survenue lors du téléchargement de la vidéo.').then((m) => { deleteMessage(m); });
}
});client.login("your token").catch((err) => {
console.log('INCORECT TOKEN LOGIN !')
})```
![Multi_Color_Bar](https://github.com/Walkoud/CS2-Auto-Accept/assets/38588921/3f57ad10-c80c-457a-9f49-679558eb2f79)