Closed GoogleCodeExporter closed 9 years ago
A useful tool for adding support for sites to get_flash_videos is Burp
(http://www.portswigger.net/burp/download.html). This is a proxy server which
allows you to log and inspect HTTP traffic. It also allows you to select
requests and send them to the built-in "repeater" tool. This allows you to
change bits of the request and retry it, and see if you still get the same
results. For example, you could try removing the user-agent, repeating the
requesting and seeing if it still works. It's a very useful tool for
experimentation and investigation.
It's very easy to set the user-agent to whatever you want, simply do:
$browser->add_header('User-Agent' => $whatever);
Keep trying.
Original comment by zakflash...@gmail.com
on 14 Mar 2012 at 9:30
Thanks for the encouragement.
I have cracked the nut on this site. Turns out that it uses javascript to
rewrite the html on the browser. So if you just get the html, then there is no
video information. I used the firebug add-on in firefox to track down the
javascript. Wireshark also helped identify the final GET for the video file
name. Ultimately I had to GET the javascript, extract some variables and
compute the the video file url like the javascript code, before I could fetch
the video.
I'll try this code for awhile to see if there are any bugs in it before I
submit it.
How do I submit a site to the git anyway? The wiki explains how to clone the
git, but not how to submit a patch or add?
Original comment by pcwal...@comcast.net
on 21 Mar 2012 at 4:21
Good work.
Fork get-flash-videos on Github, and then clone your fork.
Add your file with git add and then add your changes with git commit and git
push. Log in to Github and view your fork.
Click the "pull request" button near the top right of the window, and follow
the instructions. We get notified and if we're happy, we can merge the pull
request. Github also has pretty good tools for commenting and reviewing code,
so you can refine the code if we have any concerns.
Look forward to seeing the code.
Original comment by zakflash...@gmail.com
on 21 Mar 2012 at 9:59
I worked through the process of forking get-flash-videos and added Nasa.pm.
I have committed and pushed a few Ustream.pm changes as well as the new Nasa.pm.
I submitted a pull request. However, I am not sure what to do next.
Original comment by pcwal...@comcast.net
on 26 Mar 2012 at 6:37
Just merged your changes, thanks. Once you submit a pull request, you just have
to wait for it to be merged. We're not as quick as we should be, so thanks for
your patience.
Original comment by zakflash...@gmail.com
on 9 Apr 2012 at 3:13
Original issue reported on code.google.com by
pcwal...@comcast.net
on 11 Mar 2012 at 9:41