phantomjs

Scrap web content from Amazon

Scrap web content from Amazon Question: I’m trying to scrape Amazon prices with phantomjs and python. I want to parse it with beautiful soup, to get the new and used prices for books, the problem is: when I pass the source of the request I do with phantomjs the prices are just 0,00, the code …

Total answers: 3

Selenium with PhantomJS: Yahoo login form not submitting (Python bindings)

Selenium with PhantomJS: Yahoo login form not submitting (Python bindings) Question: Im writing a python 2.7 script using selenium webdriver on OS X to login to Yahoo fantasy sports and automate some actions. The script works fine with webDriver Firefox and Chromedriver. I’ve recently started using the PhantomJS (GhostDriver) and I’ve found I can’t get …

Total answers: 1

Open web in new tab Selenium + Python

Open web in new tab Selenium + Python Question: So I am trying to open websites on new tabs inside my WebDriver. I want to do this, because opening a new WebDriver for each website takes about 3.5secs using PhantomJS, I want more speed… I’m using a multiprocess python script, and I want to get …

Total answers: 21

How to properly stop phantomjs execution

How to properly stop phantomjs execution Question: I initiated and close phantomjs in Python with the following from selenium import webdriver driver = webdriver.PhantomJS() driver.get(url) html_doc = driver.page_source driver.close() yet after the script ends execution I still find an instance of phantomjs in my Mac Activity Monitor. And actually every time I run the script …

Total answers: 7

Is there a way to use PhantomJS in Python?

Is there a way to use PhantomJS in Python? Question: I want to use PhantomJS in Python. I googled this problem but couldn’t find proper solutions. I find os.popen() may be a good choice. But I couldn’t pass some arguments to it. Using subprocess.Popen() may be a proper solution for now. I want to know …

Total answers: 8