GithubHelp home page GithubHelp logo

thedancercodes / selenium-webscraping-example Goto Github PK

View Code? Open in Web Editor NEW
68.0 10.0 52.0 1 KB

In this tutorial we will build a web scraping program that will scrape a Github user profile and get the Repository names and the Languages for the pinned repositories.

Python 100.00%
selenium selenium-webdriver webscraping chrome-webdriver python

selenium-webscraping-example's Introduction

selenium-webscraping-example's People

Contributors

thedancercodes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

selenium-webscraping-example's Issues

Help wanted: error in connection

I am getting errors which are:-
#1 ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
#2 urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x037D98B0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it
#3raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=52734): Max retries exceeded with url: /session/b7b8a762ac7b9bf34136788ddbd2c673/elements (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x037D98B0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

The only code change that i have done is at line 8, :-

option.add_argument("--no-sandbox")
option.add_argument('--headless')
path to the chromeDriver
browser = webdriver.Chrome(executable_path='Q:/Chrome/chromedriver/chromedriver.exe', options=option)```

#SYSTEM that i am using:- windows 10 64 bit
editor:- pycharm

here is the link to all the command prompt error i am getting:-

https://github.com/pratiksharm/Error_files/blob/master/Selenium_error

Failed to establish a new connection: [Errno 111] Connection refused'

what went wrong exactly ? the page exists and also driver is working fine. It opens browser , keeps the page for couple of seconds and closes the browser and then the following error appears in terminal :

HTTPConnectionPool(host='127.0.0.1', port=53365): Max retries exceeded with url: /session/a41242cf344ba85137501f64d2af2433/elements (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f074f0ddcf8>: Failed to establish a new connection: [Errno 111] Connection refused',))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.