The drop is always movingYou know that saying about standing on the shoulders of giants? Drupal is standing on a huge pile of midgetsAll content management systems suck, Drupal just happens to suck less.Popular open source software is more secure than unpopular open source software, because insecure software becomes unpopular fast. [That doesn't happen for proprietary software.]Drupal makes sandwiches happen.There is a module for that

Google search with QWebKit + QWebElement

Submitted by nk on Sun, 2010-09-12 20:27

Continuing from the Scraping webpages with Python and QWebElement post here is the second in this series where finally a real search happens.

#!/usr/bin/python

# These lines will get us the modules we need.
from PyQt4.QtCore import QUrl, SIGNAL
from PyQt4.QtGui import QApplication
from PyQt4.QtWebKit import QWebPage, QWebView
import pprint

class Scrape(QApplication):
  def __init__(self):
    # Apparently there are a number of versions of this init and PyQT

Scraping webpages with Python and QWebElement

Submitted by nk on Wed, 2010-08-11 04:07

Python is famous for being fun and it is. I have a pet project here and I have tried scraping with PyQT. Particularly note how easy it is to traverse the DOM with QWebElement (new in QT 4.6): use a simple CSS2 selector and that's it.

# These lines will get us the modules we need.
from PyQt4.QtCore import QUrl, SIGNAL
from PyQt4.QtGui import QApplication
from PyQt4.QtWebKit import QWebPage, QWebView

class Scrape(QApplication):
  def __init__(self):
    # Apparently there are a number of versions of this init and PyQT