Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Check for popups in webpage

by Anonymous Monk
on Jul 20, 2003 at 07:32 UTC ( [id://276001]=note: print w/replies, xml ) Need Help??


in reply to Re: Check for popups in webpage
in thread Check for popups in webpage

Hi , Thanks for ur help but let me specify u where I am stuck . I open a web page in netscape like yahoo.com or rediff.com or any web page in the world. I then start my perl popup killer script . Now my problem lies in getting the text contents of the web page .How can I get the web page contents of yahoo.com or rediff.com or any web page from the browser window .Mostly i can hard code the url which i don't want since I can open any web page in the browser and I want to retrieve the text contents of the opened web page in browser . Eg : If i open yahoo.com then i should be able to retrive the yahoo.com web contents i.e text and check for popup. If i open rediff.com then i should be able to retrive the rediff.com web contents i.e text and check for popup. Can u suggest me on how I can do it . Please let me know on the above problem . Bye

Replies are listed 'Best First'.
Re: Re: Re: Check for popups in webpage
by bobn (Chaplain) on Jul 20, 2003 at 17:16 UTC

    Since, as was pointed out to you ( or someone like you) in another node, you'd need to have your script interact with the Netscape application, this is hard to make work on Unix.

    Therefore, your script would have to be a proxy, sitting between your Netscape and the Web, so it could see all the pages you retrieve and check them. Of course, if you judt want to kill the popups (and don't want to use Mozilla for some reason), you could use junkbuster - as this is a proxy that sits between your browser and the web watching what goes by and acting on it.

    Otherwise, tell your professor he's asking for the impossible (or near impossible).

    Update: You could run the code previously suggested in a loop that waited for a URL to be given on STDIN, then checked the page and repeated. Then you could copy and paste the URLs from the Location field in Netscape to the treminal where your script is running. Other than that, good luck.

    --Bob Niederman, http://bob-n.com

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://276001]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-19 12:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found