New on LowEndTalk? Please Register and read our Community Rules.
Is their is browser extension send command + args to Linux command line !
I made bash script that download from YT for specified format (360P/webm+48kb.oputs) that's will save me tons of bandwidth , but now I have to open the terminal and past the url manually which becomes annoying .
their is Extension that download youtube video but it's can't be tweaked either download video only or download video with high bitrate audio + it's uses default browser download manger(which is super slow) ,
I only need to press the button and execute the command to the terminal .
Comments
What the hell are you talking about?
Okay, thanks.
I want open Linux terminal from the browser ! is that clear enough .
In answer to your question: Yes, but don't.
In answer to your problem: There are loads of browser extensions or things like https://www.alltubedownload.net/
I already have these extension but none of them use this formula
Any way I write simple php script to my VPS to do same job ,
so is their is way I could send http GET/POST request to my php script
greasemonkey could do it but I don't exactly how it could work .
double.
Well, the match lastin' about up until the particular inaccuracy, particular unusually, that should be the ultimate determining factor in about the 12 round experience, heart of a champion, margarine hat.
So, self-host alltube and just statically set those options in it.
I don't need opening mys script page each time I want to download new video , that's will be the same when I open terminal and past video url manually
I guess the only solution is
greasemonkey
script that send AJAX request to my server and bring me direct video download url after my server download it ,,,,OK after rethinking
greasemonkey
could send these request to my local server running the same script and download it directly to my HDD .Or you could use the bookmarklet with alltube.
thanks for briliant sugesting I completley forgot about JS bookmar , here is code I found
javascript : location . href ='https://www.mydomain.com/ytdl.php?v='+document.location.href
<<I can use it to redirect to my localhost , here is simple php code
credit to this reddit comment .
Just thinking loud ...
What you want is to run some prog (a yt downloader) but with a url from within the browser plus with a specific command line. So I wouldn't do that in the browser at all but create a small program that gets the desired url via the clip board and then creates the desired command line for the downloader and calls it.
Advantage: No mucking around with browser extensions, no risky stuff, and more flexibility; all that's needed in the browser is 1 click (copy url). The utility you create then simply gets the clipboard entry with a second click (this time in the utility), creates the desired command line and runs the downloader. Both basic parts (grab clip board entry, run downloader) are simple in many languages and having the utility running always, preferably in a tray in the taskbar, is also simple.
Plus that solution works with every browser (or in fact with anything that can put a url into the clip board).
Youtube-dl videos command-line tool YouTube.com and lentsuku. 2.6,2.7, or 3.2+) requires Python, the platform. We provide day program containing all of the devil. YouTube-DL is a performance windows, mac, or unix we need to change after,but if you want to, and it means that the kernel module.
Could you create a javascript bookmark that calls a specific URL handler? Then register your own via something like this: http://edoceo.com/howto/xfce-custom-uri-handler
Countdown until everything under the docroot is overwritten by scraping bot..
Holy cow That's superb , I never think of that
@inklight
That has ought to be one of the worst scripts I've ever seen. Passing dirty input to shell_exec will ensure that your server will get hacked in no time.
Imagine if I put:
Boom, any files accessible by your web server are now gone. Please, never use the code you just posted.
Not quite right. Make ur script work passively. Either of ur own with node/python or such or otherwise use somewhat like pastebin + cronjob with ur bash script.
Don't complicate simple things. If you are using just browser, https://www.clipconverter.cc or tons of others download sites.
I suggest you create API and run exec command in php or similar if you use something else.
then call it with extension in JavaScript with download url.
that's wasn't mine I already use nginx/region restriction+ special user agent + special domain to access that script , so almost no other PC on the world could run it .+ I even can use special password check either with POST or GET to exterminate the script before sehll_exec function .
BTW I already solve this problem
@inklight
Those are some ways you can protect it yes, but the condensed solution didn't mention them -- what irks me is that some other unsuspecting soul might decide to host it without any protection and trust me, it'll wreck havoc.
All I ask is that you make it so there's a static key required for example, so that novice users don't get their systems hacked.
I didn't finish the code yet , test it on my local machine server and it's works but t had issue combining files with ffmpeg (usually youtube-dl do it automatically ) ,
Last php
shell_exec
can't wipe out the entire hdd since it's runs with no root privilege(www-data usually) but it can access to other system resource like/etc/ passwd
I think you could get the post/get parameter (URL, maybe) and use the php function exec() or shell_exec(). Is it more straight to your need?
Host youtube-dl server and then use bookmarlet
https://github.com/manbearwiz/youtube-dl-server/blob/master/README.md#bookmarklet
>
that's looks good alternative solution , anyway I'm using localhost bookmark and works well for me , I may write sort tutorial on it here