rt2yrru / get-flash-videos

Automatically exported from code.google.com/p/get-flash-videos
0 stars 0 forks source link

the latest version of get_flash_videos does not support proxy ? #446

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I tried using a proxy and worked for the url I was tring. There are different 
types of proxy and methods of using a proxy.

Had to try to find goagent, that appears to be an http/https proxy.

I used:
export HTTP_PROXY=http://host:8080
./combine_get_flash_videos url

That works for OpenBSD using a http proxy, no details on your OS, or how your 
setting proxy.

There was a change to FlashVideos::Mechanize in April 2011, that looks like it 
causes an issue for this form
get_flash_videos --proxy=http://host:8080 url

The socks form should work with a socks proxy
get_flash_videos --proxy=host:8080 url

correction is 
https://github.com/njtaylor/get-flash-videos/commit/9f9664fa303271fc277e2ef742b0
739f619a3cae

Until then you should be able to use the environment setting 
HTTP_PROXY=http://host:8080 on linux, may work on windows

Original issue reported on code.google.com by chancem...@gmail.com on 1 Nov 2012 at 2:13

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Attached is an updated combined file, works on OpenBSD, also works on debian 
squeeze.

$ ./combined-get_flash_videos-1.24-test-20121102 -d --proxy=http://test:8080 
http://www.itv.com/itvplayer/video/?Filter=327027             
2 plugins installed:
- Channel5.pm
- Hulu.pm
Using proxy server http://test:8080
Trying to open plugin ~/.get_flash_videos/plugins/Www.pm
Using method 'itv' for http://www.itv.com/itvplayer/video/?Filter=327027
Downloading http://www.itv.com/itvplayer/video/?Filter=327027
-> GET http://www.itv.com/itvplayer/video/?Filter=327027
<- 200 text/html; charset=utf-8 (24438): UTF8 on, non-ASCII, 24438 characters 
24442 bytes
<s:Envelope 
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><GetPlaylistResponse
 xmlns="http://tempuri.org/"><GetPlaylistResult><Playlist xmlns="">
  <ProductionId>1/9089/0012#002</ProductionId>
  <SessionId>0</SessionId>
  <Ticket></Ticket>
  <AlcatrazId></AlcatrazId>

Original comment by njtaylor...@gmail.com on 2 Nov 2012 at 3:10

Attachments:

GoogleCodeExporter commented 8 years ago
Socks proxy tested, --proxy=localhost --proxy=localhost:1080 
--proxy=socks://localhost:1080 --proxy=socks://127.0.0.1:1080 all these forms 
worked. Cannot use --proxy=127.0.0.1 or --proxy=127.0.0.1:1080
Test used ssh -D 127.0.0.1:1080 test to provide the socks proxy. ssh from 
OpenBSD to debian squeeze.

Both forms of proxy socks or http work. Only using the --proxy=host[:port] were 
host is an ip address, later update allows --proxy=127.0.0.1 converting to 
socks://127.0.0.1:1080

Next download files created will include this change, and once the existing 
pull request has been dealt with a pull request will be submitted to close this 
issue.

Original comment by njtaylor...@gmail.com on 3 Nov 2012 at 1:05

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
This is in the main repository, and can be closed.

Original comment by njtaylor...@gmail.com on 8 Mar 2013 at 12:19