[Tutor] Py/selenium bindings

bruce badouglas at gmail.com
Sun Feb 28 22:45:33 EST 2016


This might be a bit beyond the group, but I figured no harm/no foul.

I'm looking to access a site that's generated via javascript. The jscript
of the site is invoked via the browser, generating the displayed content.

I'm testing using py/selenium bindings as docs indicate that the
py/selenium/PhantomJS browser (headless) combination should invoke the
jscript, and result in the required content.

However, I can't seem to generte anything other than the initial encrypted

Any thoughts/comments would be useful.

The test script is:

#    FileName:
#        udel_sel.py

#test python script
import subprocess
import re
import libxml2dom
import urllib
import urllib2
import sys, string
import time
import os
import os.path
from hashlib import sha1
from libxml2dom import Node
from libxml2dom import NodeList
import hashlib
import pycurl
import StringIO
import uuid
import simplejson
import copy
from selenium import webdriver


if __name__ == "__main__":
# main app


  driver = webdriver.PhantomJS()

  print xx



More information about the Tutor mailing list