Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #36429
| Date | 2013-01-08 14:19 +0100 |
|---|---|
| From | Bruno Dupuis <lisael@lisael.org> |
| Subject | Re: How to get the selected text of the webpage in chrome through python ? |
| References | <b181f61b-c5c9-461a-9acc-8c79e257fae7@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.274.1357651549.2939.python-list@python.org> (permalink) |
On Mon, Jan 07, 2013 at 08:20:28PM -0800, iMath wrote: > How to get the selected text of the webpage in chrome through python ? What you need is a way to get selected text from wherever it comes. The way to do this depends on your graphical environment. If you use X, i'd make a a quick and dirty call to xclip -o, although there must be a pure python implementation which in turn depends on the python framework you play with (gtk/qt/wx/tk/...). Short answer is : it depends on your system, and it may be easier and more portable if you use a graphical toolkit. cheers. -- Bruno Dupuis
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