[Qt-interest] Html parsing
Benjamin Lau
blwy10v at gmail.com
Mon Dec 1 15:46:40 CET 2008
Well...if you want something simpler, try this:
Get Python and a library called BeautifulSoup
www.crummy.com/software/BeautifulSoup/
Write a Python script to open the saved HTML file, find the section
with the translated text and print it to standard output or to a file
Write a Qt program to download the HTML from Google, invoke the Python
script and display its output
This is simpler than using WebKit in Qt, but requires an entire
language interpreter. To streamline this you can directly embed a
Python interpreter in the program, but that is left as an exercise for
the reader (read: much to complicated and irrelevant to explain here
in a Qt mailing list)
Hope this helps!
Ben
More information about the Qt-interest-old
mailing list