Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #36470
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <redstone-cold@163.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'subject:text': 0.05; 'differently': 0.07; 'subject:How': 0.09; 'python': 0.09; 'accepts': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'subject:python': 0.11; 'suggest': 0.11; 'subject: \n ': 0.16; 'subject:through': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'copied': 0.17; 'jan': 0.18; 'equivalent': 0.20; 'seems': 0.23; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'realize': 0.27; 'start,': 0.27; 'probably': 0.29; 'returned': 0.30; 'subject: ?': 0.30; 'function': 0.30; 'received:google.com': 0.34; 'text': 0.34; 'received:209.85': 0.35; 'something': 0.35; 'cc:no real name:2**1': 0.36; 'quite': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'there,': 0.38; 'received:209.85.214': 0.39; 'skip:u 10': 0.60; 'hints': 0.65; 'webpage': 0.65; 'skip:n 30': 0.69; 'subject:get': 0.81; '2013': 0.84; 'addon': 0.84; 'not...': 0.84; 'selection,': 0.84; 'dennis': 0.91 |
| Newsgroups | comp.lang.python |
| Date | Tue, 8 Jan 2013 18:54:06 -0800 (PST) |
| In-Reply-To | <mailman.273.1357650704.2939.python-list@python.org> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=182.242.152.192; posting-account=Z1-aQQoAAADvnuKxr9sysEiuPIcBNfjX |
| References | <b181f61b-c5c9-461a-9acc-8c79e257fae7@googlegroups.com> <dn4oe8hv6ulm6ea8edhr5luiir861f1u7q@invalid.netcom.com> <mailman.273.1357650704.2939.python-list@python.org> |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| X-Google-IP | 182.242.152.192 |
| MIME-Version | 1.0 |
| Subject | Re: How to get the selected text of the webpage in chrome through python ? |
| From | iMath <redstone-cold@163.com> |
| To | comp.lang.python@googlegroups.com |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| Cc | python-list@python.org, d@davea.name |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Message-ID | <mailman.304.1357700573.2939.python-list@python.org> (permalink) |
| Lines | 59 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1357700573 news.xs4all.nl 6875 [2001:888:2000:d::a6]:52130 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:36470 |
Show key headers only | View raw
在 2013年1月8日星期二UTC+8下午9时11分30秒,Dave Angel写道: > On 01/08/2013 07:38 AM, Dennis Lee Bieber wrote: > > > On Mon, 7 Jan 2013 20:20:28 -0800 (PST), iMath <redstone-cold@163.com> > > > declaimed the following in gmane.comp.python.general: > > > > > >> How to get the selected text of the webpage in chrome through python ? > > > Chrome is a browser, is it not... If you want to get the text in > > > Python, you have to write the equivalent of a browser -- something that > > > parses the returned HTML message, extracting the parts you want. > > > > To get a selection, you can either wait till it's copied to the > > clipboard, and get it from there, or you can write a addon for the > > application. Since Chrome accepts addons, I suggest you research that > > angle. Probably mozilla.org is the place to start, and function > > > > nsISelectionController::GetSelection() might be some place to examine. > > > > You might find some hints in > > http://stackoverflow.com/questions/2671474/range-selection-and-mozilla > > > > > > if you are going to work with the clipboard, realize that it works quite > > differently from one OS to another, and even from one desktop manager to > > another. > > > > -- > > > > DaveA It seems need Javascript to work it on . Unfortunately ,I am only familiar with python .
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to get the selected text of the webpage in chrome through python ? iMath <redstone-cold@163.com> - 2013-01-07 20:20 -0800
Re: How to get the selected text of the webpage in chrome through python ? iMath <redstone-cold@163.com> - 2013-01-08 02:52 -0800
Re: How to get the selected text of the webpage in chrome through python ? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-01-08 07:38 -0500
Re: How to get the selected text of the webpage in chrome through python ? Dave Angel <d@davea.name> - 2013-01-08 08:11 -0500
Re: How to get the selected text of the webpage in chrome through python ? iMath <redstone-cold@163.com> - 2013-01-08 18:54 -0800
Re: How to get the selected text of the webpage in chrome through python ? iMath <redstone-cold@163.com> - 2013-01-08 18:54 -0800
Re: How to get the selected text of the webpage in chrome through python ? Bruno Dupuis <lisael@lisael.org> - 2013-01-08 14:19 +0100
Re: How to get the selected text of the webpage in chrome through python ? iMath <redstone-cold@163.com> - 2013-01-08 18:47 -0800
Re: How to get the selected text of the webpage in chrome through python ? iMath <redstone-cold@163.com> - 2013-01-08 18:47 -0800
Re: How to get the selected text of the webpage in chrome through python ? Miki Tebeka <miki.tebeka@gmail.com> - 2013-01-08 06:01 -0800
Re: How to get the selected text of the webpage in chrome through python ? Alister <alister.ware@ntlworld.com> - 2013-01-09 09:35 +0000
Re: How to get the selected text of the webpage in chrome through python ? iMath <redstone-cold@163.com> - 2013-01-09 17:55 -0800
csiph-web