Re: [Trisquel-users] Need help with a Perl script

2016-06-08 Thread gnuser
It's working now! I even corrected a bug in the end of the script, it would never write "Finished name_of_video" and now it does (would give this back to the guys who wrote the script, but they never answered my emails so I don't think they even read them). Also, I updated the curl

Re: [Trisquel-users] Need help with a Perl script

2016-06-08 Thread gnuser
Thanks! That worked! I love to learn new stuff :) However there seems to be a problem with the script itself (which may have been a mistake on my part) so I will have to check it better and let you guys know if it worked or not :)

Re: [Trisquel-users] Need help with a Perl script

2016-06-08 Thread gnuser
Because it's still experimental. I am not even sure if they have hostname being resolved over proxy or directly. CUrl on the other hand is a software that I have tried and used many times, and I have relatively confidence on it's socks implementation. ALso, I am not even sure if youtube-dl

Re: [Trisquel-users] Need help with a Perl script

2016-06-08 Thread firefoxbugreporter
This gives you a clue curl: option --socks5-hostname 127.0.0.1:9150: is unknown Curl thinks that the whole thing is one parameter. You can get the same result by running curl '--socks5-hostname 127.0.0.1:9150' localhost What you should do is make it separate. You should try removing the

Re: [Trisquel-users] Need help with a Perl script

2016-06-07 Thread danigaritarojas
Wait just sec. Why are you using this script instead of using youtube-dl? youtube-dl supports proxy too. --proxy URL Use the specified HTTP/HTTPS/SOCKS proxy. To enable experimental SOCKS proxy, specify a

Re: [Trisquel-users] Need help with a Perl script

2016-06-07 Thread gnuser
Wish it was that simple. I had already tried that and it gave the same error. Also, notice that the first curl occurrence is okay (just copy paste the script and give it a go, check what happens). The second one is where the script fails. It actually manages to do the "discover video title

Re: [Trisquel-users] Need help with a Perl script

2016-06-07 Thread danigaritarojas
>"curl: option --socks5-hostname 127.0.0.1:9150: is unknown" >"I think there is something wrong in the line: system("curl", "-sSRL", "--socks5-hostname 127.0.0.1:9150", "-A 'Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0'", "-H 'Accept-Language: en-us,en;q=0.5'", "-o",

Re: [Trisquel-users] Need help with a Perl script

2016-06-07 Thread gnuser
curl: option --socks5-hostname 127.0.0.1:9150: is unknown curl: try 'curl --help' or 'curl --manual' for more information Which is weird considering the first time curl runs it uses the tor proxy just fine (i checked and it is using the proxy, not bypassing it). I think there is something

Re: [Trisquel-users] Need help with a Perl script

2016-06-07 Thread danigaritarojas
http://stackoverflow.com/ Also: >"gives me an error" What error?

[Trisquel-users] Need help with a Perl script

2016-06-07 Thread gnuser
Hey guys, so I am not skilled in Perl (I always do my stuff in Bash), but I found a cool youtube downloader script in Perl, and wanted to use it. I tried to modify the "curl" option to use "--socks5-hostname 127.0.0.1:9150" as to use my Tor connection (which I sometimes do in Bash scripts).