473,396 Members | 1,809 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

retrieve web page content

Hi ,
I want to retrieve any web page content using javascript . suppose
I logged into my gmail account and opened my e-mail. now i want that a
javascript will execute on the page and read all text content from
that page (e.g. all email subjects ) and save it in a text file . I
may embed the script in my browser. Is this possible ? Can you
suggest any code for this ?
Thank you .
Regards
Subhadip

Mar 27 '07 #1
11 3691
subhadip wrote on 27 mrt 2007 in comp.lang.javascript:
Hi ,
I want to retrieve any web page content using javascript . suppose
I logged into my gmail account and opened my e-mail. now i want that a
javascript will execute on the page and read all text content from
that page (e.g. all email subjects ) and save it in a text file . I
may embed the script in my browser. Is this possible ? Can you
suggest any code for this ?
Thank you .
You cannot embed javascript in the webpage of another on your browser.

You could use a servlet/bookmarklet to [IE] rerieve the innerText,
but writing with that to a file on the local pc is not easy.

Why not just do a ctrl-a ctrl-c of the page, and dump that in notepad?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Mar 27 '07 #2
On Mar 27, 3:22 pm, "Evertjan." <exjxw.hannivo...@interxnl.netwrote:
subhadip wrote on 27 mrt 2007 in comp.lang.javascript:
Hi ,
I want to retrieve any web page content using javascript . suppose
I logged into my gmail account and opened my e-mail. now i want that a
javascript will execute on the page and read all text content from
that page (e.g. all email subjects ) and save it in a text file . I
may embed the script in my browser. Is this possible ? Can you
suggest any code for this ?
Thank you .

You cannot embed javascript in the webpage of another on your browser.

You could use a servlet/bookmarklet to [IE] rerieve the innerText,
but writing with that to a file on the local pc is not easy.

Why not just do a ctrl-a ctrl-c of the page, and dump that in notepad?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
I will do that work repeatedly , say after 5 minutes interval .
extract the content , save that in a
text pad.

Mar 27 '07 #3
On 27 Mar, 11:10, "subhadip" <subhadip...@gmail.comwrote:
suppose
I logged into my gmail account and opened my e-mail. now i want that a
javascript will execute on the page and read all text content from
that page (e.g. all email subjects ) and save it in a text file . I
may embed the script in my browser. Is this possible ?
If you are using Opera as your web browser then this may be possible.
See here for more information:

http://www.opera.com/support/tutorials/userjs/

regards,

wp.

Mar 27 '07 #4
subhadip wrote on 27 mrt 2007 in comp.lang.javascript:
On Mar 27, 3:22 pm, "Evertjan." <exjxw.hannivo...@interxnl.netwrote:
>subhadip wrote on 27 mrt 2007 in comp.lang.javascript:
Hi ,
I want to retrieve any web page content using javascript .
suppose
I logged into my gmail account and opened my e-mail. now i want
that a javascript will execute on the page and read all text
content from that page (e.g. all email subjects ) and save it in a
text file . I may embed the script in my browser. Is this
possible ? Can you suggest any code for this ?
Thank you .

You cannot embed javascript in the webpage of another on your
browser.

You could use a servlet/bookmarklet to [IE] rerieve the innerText,
but writing with that to a file on the local pc is not easy.

Why not just do a ctrl-a ctrl-c of the page, and dump that in
notepad?
I will do that work repeatedly, say after 5 minutes interval.
extract the content, save that in a text pad.
Good for you. Keeps you occupied.
However it is not really sensible.

Javascript on a browser is, I told you so,
embedded by the page programmer.

In the case of the Gmail Inbox, it seems more sensible
to make a gmail pop3
and access it, say, from a serverside coded webpage.

<http://www.4guysfromrolla.com/webtech/092201-1.shtml>

Under serverside ASP [can be done in jscript]
I nowadays would use CDO or Jmail.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Mar 27 '07 #5
On Mar 27, 4:18 pm, "Evertjan." <exjxw.hannivo...@interxnl.netwrote:
subhadip wrote on 27 mrt 2007 in comp.lang.javascript:
On Mar 27, 3:22 pm, "Evertjan." <exjxw.hannivo...@interxnl.netwrote:
subhadip wrote on 27 mrt 2007 in comp.lang.javascript:
Hi ,
I want to retrieve any web page content using javascript .
suppose
I logged into my gmail account and opened my e-mail. now i want
that a javascript will execute on the page and read all text
content from that page (e.g. all email subjects ) and save it in a
text file . I may embed the script in my browser. Is this
possible ? Can you suggest any code for this ?
Thank you .
You cannot embed javascript in the webpage of another on your
browser.
You could use a servlet/bookmarklet to [IE] rerieve the innerText,
but writing with that to a file on the local pc is not easy.
Why not just do a ctrl-a ctrl-c of the page, and dump that in
notepad?
I will do that work repeatedly, say after 5 minutes interval.
extract the content, save that in a text pad.

Good for you. Keeps you occupied.
However it is not really sensible.

Javascript on a browser is, I told you so,
embedded by the page programmer.

In the case of the Gmail Inbox, it seems more sensible
to make a gmail pop3
and access it, say, from a serverside coded webpage.

<http://www.4guysfromrolla.com/webtech/092201-1.shtml>

Under serverside ASP [can be done in jscript]
I nowadays would use CDO or Jmail.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
not really . there is a browser , named OPERA , who will give the
options to embed javascript in browser corresponding to that page .
see http://www.opera.com/support/tutorials/userjs/ .
gmail is just a example . i want to do this for the webmails that
don't allow pop .

Mar 27 '07 #6
subhadip wrote on 27 mrt 2007 in comp.lang.javascript:
On Mar 27, 4:18 pm, "Evertjan." <exjxw.hannivo...@interxnl.netwrote:
>subhadip wrote on 27 mrt 2007 in comp.lang.javascript:
On Mar 27, 3:22 pm, "Evertjan." <exjxw.hannivo...@interxnl.net>
wrote:
subhadip wrote on 27 mrt 2007 in comp.lang.javascript:
Hi ,
I want to retrieve any web page content using javascript .
suppose
I logged into my gmail account and opened my e-mail. now i want
that a javascript will execute on the page and read all text
content from that page (e.g. all email subjects ) and save it
in a text file . I may embed the script in my browser. Is this
possible ? Can you suggest any code for this ?
Thank you .
>You cannot embed javascript in the webpage of another on your
browser.
>You could use a servlet/bookmarklet to [IE] rerieve the innerText,
but writing with that to a file on the local pc is not easy.
>Why not just do a ctrl-a ctrl-c of the page, and dump that in
notepad?
I will do that work repeatedly, say after 5 minutes interval.
extract the content, save that in a text pad.

Good for you. Keeps you occupied.
However it is not really sensible.

Javascript on a browser is, I told you so,
embedded by the page programmer.

In the case of the Gmail Inbox, it seems more sensible
to make a gmail pop3
and access it, say, from a serverside coded webpage.

<http://www.4guysfromrolla.com/webtech/092201-1.shtml>

Under serverside ASP [can be done in jscript]
I nowadays would use CDO or Jmail.

--
[please do not quote signatures on usenet]
>
not really . there is a browser , named OPERA , who will give the
options to embed javascript in browser corresponding to that page .
see http://www.opera.com/support/tutorials/userjs/ .
gmail is just a example . i want to do this for the webmails that
don't allow pop .
Not really what?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Mar 27 '07 #7
On Mar 27, 6:08 am, "subhadip" <subhadip...@gmail.comwrote:
Javascript on a browser is, I told you so,
embedded by the page programmer.

not really . there is a browser , named OPERA , who will give the
options to embed javascript in browser corresponding to that page .
see http://www.opera.com/support/tutorials/userjs/.
Request UserJS here-
http://my.opera.com/community/forums/forum.dml?id=114

Mar 27 '07 #8
I believe if you insist to use Javascript to solve your problem you
going to need special browser such as Opera or creating your own
extension on Firefox.

A solution using Desktop application (be it in Perl/.NET/Phyton)
should be simpler to construct.

Regards,
Hardono Arifanto
-----------------------
http://sodeve.net
Mar 27 '07 #9
Hardono Arifanto wrote on 27 mrt 2007 in comp.lang.javascript:
I believe if you insist to use Javascript to solve your problem you
...........
What are you responding on?
Who is "you"?

[please always quote on usenet, this is not email]

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Mar 28 '07 #10
On Mar 28, 4:35 pm, "Evertjan." <exjxw.hannivo...@interxnl.netwrote:
Hardono Arifanto wrote on 27 mrt 2007 in comp.lang.javascript:
I believe if you insist to use Javascript to solve your problem you
...........

What are you responding on?
Who is "you"?

[please always quote on usenet, this is not email]

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

My apology Evertjan :),
I'm reading the group using Google Groups, I was referring to :
suppose
I logged into my gmail account and opened my e-mail. now i want that a
javascript will execute on the page and read all text content from
that page (e.g. all email subjects ) and save it in a text file . I
may embed the script in my browser. Is this possible ?
Regards,
Hardono Arifanto
-----------------------
http://sodeve.net
Mar 28 '07 #11
Hardono Arifanto wrote on 28 mrt 2007 in comp.lang.javascript:
On Mar 28, 4:35 pm, "Evertjan." <exjxw.hannivo...@interxnl.netwrote:
>Hardono Arifanto wrote on 27 mrt 2007 in comp.lang.javascript:
I believe if you insist to use Javascript to solve your problem you
...........

What are you responding on?
Who is "you"?

[please always quote on usenet, this is not email]

My apology Evertjan :),
I'm reading the group using Google Groups, I was referring to :
>suppose
I logged into my gmail account and opened my e-mail. now i want that a
javascript will execute on the page and read all text content from
that page (e.g. all email subjects ) and save it in a text file . I
may embed the script in my browser. Is this possible ?
Ah yes, I remember.
Using clientside browser javascript ecvery 5 minutes in a page of another
seems not the way to go about.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Mar 28 '07 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Info 3000 | last post by:
Hi there, Simple question, but headache ! I have a PHP Page like : <HTML> <HEAD> <TITLE>Sunny day !</TITLE> </HEAD>
2
by: RiGGa | last post by:
Hi, I am relatively new to php however I am working on a site and appear to be getting on quite well. Most of my pages are coded in php and work fine however what I would like to do is be able...
2
by: Mike | last post by:
In a Windows Forms application I want to get the title of a web page when I know it's url. For example, the page which the url "http://groups.google.com/" refers has the title "Google Groups". How...
5
by: ggk517 | last post by:
We are trying to develop an Engineering application using PHP, Javascript with Informix as the back-end. Is it possible to retrieve data using Javascript but by accessing the Database. Say...
3
by: Kees de Winter | last post by:
Hi, If I have a TextBox place inside a content placeholder then at runtime the TextBox's name changes to ctl00_ContentPlaceHolder1_tbCity. What is the best way to get the value of the TextBox...
1
by: onceuponapriori | last post by:
Greetings gents. I'm a Railser working on a django app that needs to do some scraping to gather its data. I need to programatically access a site that requires a username and password. Once I...
2
by: * Tong * | last post by:
Hi, I'm wondering if you can show me an example php page that allows me to retrieve and display 3rd party pages. I.e., when my php script is called as http://site/path/getit.php?file_key it...
12
lifeisgreat20009
by: lifeisgreat20009 | last post by:
I am a newbie to Struts and JSP...I have been working on the code below for 5 hours now..I googled a lot but couldn't get much help so finally I am here.. Hoping of getting my problem solved. Please...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
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,...

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.