Coder Social home page Coder Social logo

rentalia-data-scraper's Introduction

Scraper for rentalia website:

This project has a sole purpose of extracting data for hotels listed in rentalia website. Rentalia website is a hotel listings and booking website in spain, you can book your hotels, compare listing, inquire, etc. Follow the steps given below to set the system up.

  • To get started create a directory for this project, inside that directory create a virtual environment for the project using the folling command:
    python -m venv virtual_env

  • Once you have set up the environment you will type virtual_env\Scripts\Activate in cmd to activate the virtual enviroment.

  • I have included a requirements.txt file that contains all required libraries with their versions to run the program, you can install all the libraries by executing the command pip install -r requirements.txt

  • Now inside the direcctory 'Driver' you will find a chrome driver file. You can change that driver based on which version of chrome you are using or which browser do you have.

You are now good to go, Run the following command to start the scraper.
python retalia.py

You can pass the name of the regions as arguments after your python file name in the cmd like this:
python retalia.py "costa brava" "gava". Make sure you pass names under "".

I have included six locations "Costa Brava", "Alicante", "Barcelona", "Madrid", "Castelldefels", and "Gavà" for now, wo when you don't put any arguments in cmd it will by default take these names. You will find the scraped data inside Data directory in the form csv file. keep in mind that the data will get reflected inside that csv file only when the execution is completed or halted. I will be upgrading the code file to take arguments in cmd so that user can type the cities they want to extract the data from in cmd.

--Do visit back again in some time for updates--

Also, any suggestions on how this project could further be developed are welcomed, feel free to reach out to me at [email protected]✅.

rentalia-data-scraper's People

Contributors

mirankadri avatar

Stargazers

Roman avatar Avnish Sharma avatar  avatar

Watchers

Kostas Georgiou avatar  avatar

Forkers

iamavnishsharma

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.