469,646 Members | 1,136 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,646 developers. It's quick & easy.

This web site creates a *popup window* => how fetch contents in a script?

The following web page puts a report in a *popup window* by clicking
the "Generate Report" button....

http://moneycentral.msn.com/investor...sp?Symbol=BBBY

How can I grab this pop window page in a python script? (It doesn't
seem to have a URL!?!)

chris

Mar 6 '07 #1
6 1518
En Tue, 06 Mar 2007 03:18:23 -0300, se******@spawar.navy.mil
<se******@spawar.navy.milescribió:
The following web page puts a report in a *popup window* by clicking
the "Generate Report" button....

http://moneycentral.msn.com/investor...sp?Symbol=BBBY

How can I grab this pop window page in a python script? (It doesn't
seem to have a URL!?!)
Of course it has:
http://moneycentral.msn.com/investor...=1&Type=Equity
If your browser don't let you know the actual URL... try a better browser
:)

--
Gabriel Genellina

Mar 6 '07 #2
On Mar 5, 10:38 pm, "Gabriel Genellina" <gagsl-...@yahoo.com.ar>
wrote:
En Tue, 06 Mar 2007 03:18:23 -0300, seber...@spawar.navy.mil
<seber...@spawar.navy.milescribió:
The following web page puts a report in a *popup window* by clicking
the "Generate Report" button....
http://moneycentral.msn.com/investor...sp?Symbol=BBBY
How can I grab this pop window page in a python script? (It doesn't
seem to have a URL!?!)

Of course it has:http://moneycentral.msn.com/investor...sp?Symbol=BBBY...
If your browser don't let you know the actual URL... try a better browser
:)

--
Gabriel Genellina

Sure I can grab the aforementioned URL's contents but what about the
NEW contents in the NEW popup window that appears AFTER you press some
form buttons? How grab *that* ?

Mar 6 '07 #3
"se******@spawar.navy.mil" <se******@spawar.navy.milwrites:
Sure I can grab the aforementioned URL's contents but what about the
NEW contents in the NEW popup window that appears AFTER you press some
form buttons? How grab *that* ?
Usually it's from some fixed url with possibly some query parameters.
Just figure out the url from your "Properties" in your browser, or by
studying the javascript that popped up the window. There are various
ways the popup sites can make this difficult but it's rare for them
to bother.

Mar 6 '07 #4
En Tue, 06 Mar 2007 17:02:00 -0300, se******@spawar.navy.mil
<se******@spawar.navy.milescribió:
On Mar 5, 10:38 pm, "Gabriel Genellina" <gagsl-...@yahoo.com.ar>
wrote:
>En Tue, 06 Mar 2007 03:18:23 -0300, seber...@spawar.navy.mil
<seber...@spawar.navy.milescribió:
The following web page puts a report in a *popup window* by clicking
the "Generate Report" button....
>http://moneycentral.msn.com/investor...sp?Symbol=BBBY
How can I grab this pop window page in a python script? (It doesn't
seem to have a URL!?!)

Of course it
has:http://moneycentral.msn.com/investor...sp?Symbol=BBBY...
If your browser don't let you know the actual URL... try a better
browser
:)

Sure I can grab the aforementioned URL's contents but what about the
NEW contents in the NEW popup window that appears AFTER you press some
form buttons? How grab *that* ?
The above URL corresponds to the "NEW popup window that appears AFTER you
press some form buttons". In particular, that is what you get if you press
the "simple report" button (or something like that, I don't remember, and
if even you don't care to check it, me neither).

Anyway, I can think of 3 ways to get the info you want:
- select some options, try some buttons, and notice the URL on the
generated popup window. Luckily it's an HTTP GET and that URL is the only
info you need. (Again: if your browser isn't able to show you the URL, get
a better one!)
- same as above, but using a protocol sniffer to record the HTTP
requests/responses. This may be needed if HTTP POST is used instead.
- study the HTML+javascript code.

--
Gabriel Genellina

Mar 7 '07 #5
"Gabriel Genellina" <ga*******@yahoo.com.arwrites:
- same as above, but using a protocol sniffer to record the HTTP
requests/responses. This may be needed if HTTP POST is used instead.
Usually studying the originating page is enough, or at worst use a
client side proxy to log the http session. A protocol sniffer sounds
like too much trouble and I've never needed to resort to one for
something like this.
Mar 7 '07 #6
On Mar 6, 12:27 pm, Paul Rubin <http://phr...@NOSPAM.invalidwrote:
"seber...@spawar.navy.mil" <seber...@spawar.navy.milwrites:
Sure I can grab the aforementioned URL's contents but what about the
NEW contents in the NEW popup window that appears AFTER you press some
form buttons? How grab *that* ?

Usually it's from some fixed url with possibly some query parameters.
Just figure out the url from your "Properties" in your browser, or by
studying the javascript that popped up the window. There are various
ways the popup sites can make this difficult but it's rare for them
to bother.

I wanted to make sure to thank you and everyone else for the help.
Indeed this revealed the URL.
I just acted like I wanted to make the mystery URL my home page and it
manifested itself.

Thanks again all,

Chris

Mar 9 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Jens Peter Hansen | last post: by
14 posts views Thread by Josh | last post: by
1 post views Thread by Blue® | last post: by
6 posts views Thread by Kenneth | last post: by
6 posts views Thread by scottyman | last post: by
12 posts views Thread by Prisoner at War | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.