Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:text': 0.05; 'subject:How': 0.09; 'python': 0.09; 'portable': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'subject:python': 0.11; '-o,': 0.16; 'subject: \n ': 0.16; 'subject:through': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'jan': 0.18; "i'd": 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'environment.': 0.27; 'framework': 0.30; 'subject: ?': 0.30; 'system,': 0.32; 'received:google.com': 0.34; 'text': 0.34; 'received:209.85': 0.35; 'there': 0.35; 'depends': 0.36; 'turn': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'easier': 0.38; 'received:209.85.214': 0.39; 'short': 0.39; 'help': 0.40; 'your': 0.60; 'more': 0.63; 'learned': 0.65; 'webpage': 0.65; 'subject:get': 0.81; '2013': 0.84; '8bit%:60': 0.84; 'dirty': 0.91; 'graphical': 0.91 Newsgroups: comp.lang.python Date: Tue, 8 Jan 2013 18:47:04 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=182.242.152.192; posting-account=Z1-aQQoAAADvnuKxr9sysEiuPIcBNfjX References: 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 To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357699629 news.xs4all.nl 6857 [2001:888:2000:d::a6]:39322 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36467 =E5=9C=A8 2013=E5=B9=B41=E6=9C=888=E6=97=A5=E6=98=9F=E6=9C=9F=E4=BA=8CUTC+8= =E4=B8=8B=E5=8D=889=E6=97=B619=E5=88=8651=E7=A7=92=EF=BC=8CBruno Dupuis=E5= =86=99=E9=81=93=EF=BC=9A > On Mon, Jan 07, 2013 at 08:20:28PM -0800, iMath wrote: >=20 > > How to get the selected text of the webpage in chrome through python ? >=20 >=20 >=20 > What you need is a way to get selected text from wherever it comes. The >=20 > way to do this depends on your graphical environment. If you use X, i'd m= ake a >=20 > a quick and dirty call to xclip -o, although there must be a pure python >=20 > implementation which in turn depends on the python framework you play >=20 > with (gtk/qt/wx/tk/...). >=20 >=20 >=20 > Short answer is : it depends on your system, and it may be easier and mor= e >=20 > portable if you use a graphical toolkit. >=20 >=20 >=20 > cheers. >=20 >=20 >=20 > --=20 >=20 > Bruno Dupuis I use it on WinXP , I also learned PyQt4 . can u help ?