Rectangle 27 1

web scraping Python AttributeError: 'str' object has no attribute 'get'?


driver = webdriver.PhantomJS=("c:|phantomjs-2.1.1/windows/bin/phantomjs")
                            ^

Looks like you have a typo:

Note
Rectangle 27 1

web scraping Python AttributeError: 'str' object has no attribute 'get'?


Brionius made agreat observation. I didn't notice the second equal sign

Did A test with fresh anaconda env. I got the same error until I installed phantomjs. Up until that point it looks like python just things driver is a string variable, not something special that has a get method.

if you're not using anaconda here is a like to phantoms page http://phantomjs.org/download.html

Note