Open Webbrowser From Card

11 views
Skip to first unread message

kurt.ki...@gmail.com

unread,
Mar 1, 2015, 12:53:29 PM3/1/15
to mnemosyne-...@googlegroups.com
I'd like to write a python-script, which opens automatically opens a website and searches for the text of the question.

My application for this would be an "Eng-Eng" card set with the website

http://www.linguee.de/deutsch-englisch/search?source=auto&query=distend

. It offers a dictionary, pronunciation and example, taken from real world documents. Right now I'm searching on this website manually. So I thought it would be cool to do this automatically.

I'm pretty new to Python (and scripting). Do you think this is too hard a task? Any ideas where to start? How could I make a python program "listen" to the question text of mnemosyne?

Peter Bienstman

unread,
Mar 2, 2015, 6:43:24 AM3/2/15
to mnemosyne-...@googlegroups.com
Hi,

Please have a look at our source code on Launchpad, specifically the directory 'example scripts'.

You have two approaches:

* write a script which goes through your cards and edits them with the information from that website
* write a Filter which changes the appearance of the card just before they are displayed with info from the website. In this approach the info is only downloaded when you display cards, so you need to be online.

Good luck!

Peter
> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/ca7394f4-767e-
> 4732-bfac-4a2d3990681c%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages