Giter VIP home page Giter VIP logo

mellamanelpoeta / selenium-web-scraping Goto Github PK

View Code? Open in Web Editor NEW

This project forked from majo2103/selenium-web-scraping

2.0 0.0 0.0 80.78 MB

This repository serves as a comprehensive guide to web scraping using the Selenium library in Python. The tutorial is presented in a Jupyter notebook, providing step-by-step instructions and examples for leveraging Selenium's capabilities in web scraping tasks.

Jupyter Notebook 99.81% Shell 0.19%

selenium-web-scraping's Introduction

Selenium Web Scraping

Selenium Logo

This repository contains an executble script to create a Docker container of selenium/standalone-chrome image, providing a Selenium server with the Chrome browser. Additionally, it includes configurations for creating a virtual environment to perform web scraping tasks and format the extracted data for convenient handling with pandas.

Follow these steps to set up and work with this repository:

1. Fork

Click on the "Fork" button at the top right corner of the repository to create a copy in your GitHub account.

2. Clone

Clone the forked repository to your local machine.

3. Run setup (for linux/mac os)

Using the terminal, move to the exec directory an run ./setup.sh

3.1 If having problems with the executable

Manually create a python environment:
cp requirements.txt ../jupyter-notebooks cd .. cd jupyter-notebooks python3 -m venv .env-web-scrap source .env-web-scrap/bin/activate" pip install -r requirements.txt python -m ipykernel install --user --name="$VENV_NAME" rm -r requirements.txt

Manually start the docker container:

docker run -d --name "sel-docker" -p 4444:4444 --shm-size=2g \
  -e SE_NODE_MAX_SESSIONS=6 \
  -e SE_NODE_SESSION_TIMEOUT=1200 \
  -e SE_VNC_NO_PASSWORD=1 \
  selenium/standalone-chrome

4. Make sure docker container is up and python environment is active

Hint: docker ps

5. Work with the notebooks

Task

Follow the instructions on the corresponding jupyter-notebooks

Small tutorial

selenium-web-scraping's People

Contributors

mellamanelpoeta avatar majo2103 avatar santivillaram7 avatar maararroyo avatar javi652 avatar luisesuareza avatar omarti34 avatar galilea-r avatar genarorocha avatar maudiaz221 avatar miguelmonr avatar sebastianyamil avatar sergiopereo avatar carlaandr avatar esandovalp avatar

Stargazers

 avatar Frida Márquez  avatar

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.