检索网页内容
我想使用javascript检索任何网页内容。假设
我登录了我的Gmail帐户并打开了我的电子邮件。现在我想要一个
javascript将在页面上执行并从该页面(例如所有电子邮件主题)读取所有文本内容并将其保存在文本文件中。我可以将b * b嵌入我的浏览器中。这可能吗 ?你可以吗?
建议任何代码?
谢谢。
问候
Subhadip
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
subhadip于2007年10月27日在comp.lang.javascript中写道 :
subhadip wrote on 27 mrt 2007 in comp.lang.javascript:
我想使用javascript检索任何网页内容。假设
我登录了我的Gmail帐户并打开了我的电子邮件。现在我想要一个
javascript将在页面上执行并从该页面(例如所有电子邮件主题)读取所有文本内容并将其保存在文本文件中。我可以将b * b嵌入我的浏览器中。这可能吗 ?你可以给
建议任何代码吗?
谢谢。
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 .
您无法在浏览器的另一个网页中嵌入javascript。
您可以使用servlet / bookmarklet来[ IE]恢复了innerText,
但是用它写到本地pc上的文件并不容易。
为什么不做一个ctrl-a ctrl页面的-c,并在记事本中转储?
-
Evertjan。
荷兰。
(请将x''es更改为我的电子邮件地址中的点数)
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)
3月27日下午3:22,Evertjan。 < exjxw.hannivo ... @interxnl.netwrote:
On Mar 27, 3:22 pm, "Evertjan." <exjxw.hannivo...@interxnl.netwrote:
subhadip于2007年10月27日在comp.lang.javascript中写道 :
您好,
我想使用javascript检索任何网页内容。假设
我登录了我的Gmail帐户并打开了我的电子邮件。现在我想要一个
javascript将在页面上执行并从该页面(例如所有电子邮件主题)读取所有文本内容并将其保存在文本文件中。我可以将b * b嵌入我的浏览器中。这可能吗 ?你可以给
建议任何代码吗?
谢谢。
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 .
您无法在浏览器的另一个网页中嵌入javascript。
您可以使用servlet / bookmarklet来[ IE]恢复了innerText,
但是用它写到本地pc上的文件并不容易。
为什么不做一个ctrl-a ctrl -c的页面,并将其转储到记事本中?
-
Evertjan。
荷兰。
(请将x''es更改为我的电子邮件地址中的点数)
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)
我会重复这项工作,比如间隔5分钟后。
提取内容,将其保存在
文本板中。
I will do that work repeatedly , say after 5 minutes interval .
extract the content , save that in a
text pad.
3月27日,11: 10,subhadip < subhadip ... @ gmail.comwrote:
On 27 Mar, 11:10, "subhadip" <subhadip...@gmail.comwrote:
假设
我登录了我的Gmail帐户并打开了我的电子邮件。现在我想要一个
javascript将在页面上执行并从该页面(例如所有电子邮件主题)读取所有文本内容并将其保存在文本文件中。我可以将b * b嵌入我的浏览器中。这可能吗 ?
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 ?
如果您使用Opera作为您的网络浏览器,那么这可能是可能的。
有关更多信息,请参阅此处:
http://www.opera.com/support/tutorials/ userjs /
问候,
wp。
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.