473,507 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1661
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1887
by: Jens Peter Hansen | last post by:
Hi From my main window I open a series of popup (one close - next opens) in a mockup for a registration proces. From the last popup, I want to click a buttom, so the popup closes and the URL in...
14
1469
by: Josh | last post by:
I was wondering if anyone could point me in the direction for information to solve the following problems with my site (under development). The URL is...
1
2609
by: Blue® | last post by:
The page below creates a popup message on the screen. It printed the popup box 30 pixels from the left: document.getElementById("dwindow").style.left="30px" How do I modify it so that the...
6
1629
by: Kenneth | last post by:
Hi, function NewWindow(mypage, myname, w, h, scroll) { var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; winprops =...
6
4841
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
3
1483
by: paul | last post by:
HI! I have being to add the following as part of a function but it just will not work as is but I don't know why, can someone point out why. This opens up a popup window for a popup detection...
4
1888
by: _Raven | last post by:
Okay, I am playing with submitting forms with Ajax. I am trying to adapt this script to my forms: http://www.captain.at/howto-ajax-form-post-get.php I have included my code at the bottom of this...
0
1811
by: wizardworkz | last post by:
Hello All! Having a bit of a problem combining php with javascript here. What I have is a store with images (There will be a smaller image of each item, and a larger image of each item, but I want...
12
1618
by: Prisoner at War | last post by:
Yeah, but that requires installing the Flash plug-in. If it's otherwise possible -- which it seems to be -- CSS/JavaScript is more powerful than I'd thought! Anyway, it's a technical...
1
7031
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7485
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5042
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.