Code Monkey home page Code Monkey logo

npm-imgbb-bulk-downloader's Introduction

imgBB bulk downloader npm package

img bb

download imageBB images in bulk with ease

Note: you can also use https://deontic.github.io/chevereto-bulk-downloader to download images from other websites that use the Chevereto image hosting software (chevereto.com).

Note: you can get the easier to use web-based version at https://deontic.github.io/imgBB-web-bulk-downloader/

Info

You can use this tool to mass download images images from imgBB from their urls, I made this because there's no other utility available for this purpose.

Install

in case you don't have node installed you can set it up very easily: https://nodejs.org/en/download/

make sure you initialize an npm repository before continuing via

npm init

download the package via npm by running

npm i @un-index/imgbb-bulk

in the directory you will require it

then install the dependencies via

npm install

Usage

first copy all your links from your imgBB upload page

paste the links in a string and pass them to imgbb-bulk

note: the GIF shows me using similar urls (which happens when the same file is uploaded multiple times) imgBB-bulk does NOT work properly when there are duplicate urls, so remove those before running it                                                                                                             
// require imgbb-bulk
const imgbulk = require("@un-index/imgbb-bulk")

// save images to a folder named imgout, stored in the current directory
// NOTE: if there's any extra spaces at the end of any URL or there is a newline at the end,
// you WILL get an Invalid URL error so get rid of those

imgbulk(`https://ibb.co/Vgvx2Bm
https://ibb.co/Xsb8Lyr
https://ibb.co/VBrnTSQ
https://ibb.co/9Vgr2hP`)

/* example output:
  writing to ./imgout/img1.gif
  done
  writing to ./imgout/img2.gif
  done
  writing to ./imgout/img3.webp
  done
  writing to ./imgout/img4.gif
  done
*/

(optional) specify a separator

// by default the newline character is used as the separator
imgbulk(`https://ibb.co/Vgvx2Bm,https://ibb.co/Xsb8Lyr,https://ibb.co/VBrnTSQ,https://ibb.co/9Vgr2hP`, ",")

npm-imgbb-bulk-downloader's People

Contributors

deontic avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

iraamaro

npm-imgbb-bulk-downloader's Issues

The package does not work for me.

Hello, I tried your package with the same example script you put in the documentation.

I simply replaced your links with my own:
I put here the script :

const imgbulk = require("@un-index/imgbb-bulk")

const urls = `https://ibb.co/vjsWTxP
https://ibb.co/GJJ0T5g
https://ibb.co/HKPfJG8
https://ibb.co/0jxMFvW
https://ibb.co/pJT1hy8
https://ibb.co/Kb4NVL1
https://ibb.co/K7p6PZ0
https://ibb.co/FB6DSTz
https://ibb.co/JcR7K3y
https://ibb.co/VNBHmkn
https://ibb.co/nRv7Q3X`;

imgbulk(urls);

I then ran the command "node index.js".
and here is the error I got :

jb@Aspire-E5-571G:~/Téléchargements/npm$ node index.js
/home/jb/Téléchargements/npm/node_modules/@un-index/imgbb-bulk/index.js:30
                let name = doc.match(/data-text="image-title">(.*)</)[1]
                                                                     ^

TypeError: Cannot read properties of null (reading '1')
    at /home/jb/Téléchargements/npm/node_modules/@un-index/imgbb-bulk/index.js:30:70
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Can you help me please?

Thank you for your help.

Files original names.

Hello, thank you so much for making this.

Is there any chance of getting the files names instead of the URL names of the links?

That will be pretty handy, I use Imgbb for storage, and it's complicated to renamed hundreds of files.

But if it can't be implemented, it's all good. I love the easy you can download via your website. Windows for some reason don't let me open the ".exe" one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.