Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9151721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:52:17+00:00 2026-06-17T11:52:17+00:00

I love selenium and I love scraperwiki but somehow I cannot get them to

  • 0

I love selenium and I love scraperwiki but somehow I cannot get them to work properly together. I’ve tried to open a website in two ways with selenium on scraperwiki, both methods have been gotten from tutorials:

import selenium
sel = selenium.selenium("localhost",4444,"*firefox", "http://www.google.com")   
sel.open("http://google.com")

This does not work. It gives me the following error:

error: [Errno 111] Connection refused 

And neither does this:

from selenium import webdriver 
browser = webdriver.Firefox()

Which gives another error:

/usr/lib/python2.7/subprocess.py:672 -- __init__((self=<subprocess.Popen object at 0x1d14410>, args=[None, '-silent'], bufsize=0, executable=None, stdin=None, stdout=-1, stderr=-1, preexec_fn=None, close_fds=False, shell=False, cwd=None, env=None, universal_newlines=False, startupinfo=None, creationflags=0))
AttributeError: 'NoneType' object has no attribute 'rfind'

Does anyone see a logical reason for this?

The docs on scraperwiki indicate that seleneium is “Only useful in ScraperWiki if you have a Selenium server to point it to.” I don’t know what they mean exactly with this but I recon it might be the cause of the problem. Any help would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:52:18+00:00Added an answer on June 17, 2026 at 11:52 am

    Selenium isn’t just the Python library you are using, it also has a separate piece of software, the Selenium server mentioned in your question, which interacts with the browser on your code’s behalf.

    This line of code

    sel = selenium.selenium("localhost",4444,"*firefox", "http://www.google.com")  
    

    is trying to connect to the Selenium server in order that it can send commands to the browser (Firefox) as your code asks it to. “localhost” in the context of your script is one of ScraperWiki’s servers which is not running the selenium server.

    What you would need to do is download http://selenium.googlecode.com/files/selenium-server-standalone-2.28.0.jar and install it on a different server, running it with

    java -jar selenium-server-standalone-2.28.0.jar
    

    Then you could change your code to point to the server where you are running it. It gets more complicated because ScraperWiki restricts which ports you can connect out on to the internet with, so instead of using port 4444 you might need to use another one (probably port 80).

    All told, I think it probably isn’t a workable solution, you might be better off just writing your scraper in python, php or ruby.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I love Bootstrap but one annoyance that I can't seem to get my hands
I love the new fisheye plug in (http://bost.ocks.org/mike/fisheye/) but want to get it working
I love paredit. But there are a couple of things I hate, and have
I love LINQ to SQL but it has been bugging me that in using
I love Ruby and its framework, but I don't think that Ruby On Rails
I love the idea of Grizzly, but I can't find any good examples to
Love searching on Stackoverflow for answers, but this is my first post. Hopefully others
I love using Google Docs function =importxml() but would love to know if there
I love the way populateRelation works, but in this particular case I really got
I love all of the gnarly CSS3 background things that people are doing. But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.