views:

61

answers:

4

This is probably considered hacking, but is it possible to programmatically download swfs using something like Ruby? Not decompiling them, just downloading them so I can view them without having to go to the site with a billion advertisements.

+1  A: 

It's a very straightforward URL download as long as the site isn't doing something to prevent people from doing this, e.g. checking the REFERER field or a cookie.

There are a number of browser plugins (FF must have a dozen of them) that facilitate this kind of thing.

Peter Rowell
+1  A: 

Assuming you know the address of the flash movie:

require 'net/http'

Net::HTTP.start( 'www.example.com' ) { |http|
  resp = http.get( '/movie.swf' )
  open( '/tmp/movie.swf', 'wb' ) { |file|
    file.write(resp.body)
  }
}
Darin Dimitrov
thanks, works great!
viatropos
A: 

you may think this is silly!! open up a text browser like elinks and load a page which has swf file/content, then it'll only ask what to do and downloads content, has worked for me.......

abhilashm86
A: 

you can download SWF with Moyea FREE flash downloader