ghost = Ghost()
page, rcs = ghost.open(https://soundcloud.com/passionpit/sets/favorites)
page, rcs = ghost.wait_for_page_loaded()
songs = ghost.evaluate("document.getElementsByClassName('soundTitle__title');")
print songs
I am attempting to use the above code to find all html elements on the above page that have the class 'soundTitle__title' however as of right now my output is
QFont::setPixelSize: Pixel size <= 0 (0)
({PyQt4.QtCore.QString(u'length'): 0.0}, [])
Can anyone help me see where my problem is? When I run document.getElementsByClassName('soundTitle__title')
in my browsers console I get the output I expect, why is the Python output different?
Or is there some way for me to use Ghost.py or another similar library to get the source of the page after the JavaScript has run (the source seen when inspecting an element with browser developer tools)?