[Tutor] Scraping gov site: site looking for Flash player
Benno Lang
transmogribenno at gmail.com
Tue Apr 6 01:38:55 CEST 2010
On 6 April 2010 03:31, Roy Hinkelman <royhink at gmail.com> wrote:
> I am using urllib2 to open some government pages, and they have some js
> checking for Flash on my computer.
> Is there a way to show them that I have flash? Or possibly another solution?
>From reading the JavaScript, you should fetch the URL
domain.tld/doc.php?flash=true&doc=2 instead of domain.tld/ as the
first URL.
> var flashPage = "/doc.php?flash=true&doc=2"; // The location of the
> flash movie page
This is the JS that specifies the desired redirect location. You could
open the original URL in a flash-capable browser to work out where to
go as well.
However, if the site is flash-based, you probably won't be able to get
any useful info from it.
HTH,
benno
More information about the Tutor
mailing list