(Personal use) An API for control downloading remotely, e.g. on a raspberry pi with external HDDs
- p,x,e
- youtube
- direct downloading
pip3 install instaloader
(for instagram)sudo apt install chromium-browser
if you are using Raspberry Pi- ffmpeg (for youtube)
- and of course, nodejs
- clone this repo
- run
npm install
- modify the
config.json
, set thebaseSaveDir
to the directory you want to put your files in, set eh(*)id
&hash
from your logged in browser session, set instagram usename and password if necessary(if you don't want, set thelogin
option tofalse
), setinstalloader
path - run
./run
ornode app.js
in current directory, or add it as a service if you want
After all these, you should be able to access the api from your browser at port 3000
, e.g. http://127.0.0.1:3000
:
- POST
/resource
, with a bodyurl
where you put the url you want to download, will download automaticaly - GET
/status
, show current download status - GET
/log
, show log - and others, you can find them in app.js