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
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 :)
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
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
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
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
>"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",
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
http://stackoverflow.com/
Also:
>"gives me an error"
What error?
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).
10 matches
Mail list logo