Git Product home page Git Product logo

divar_webscrap's Introduction

Divar_WebScrap

In this project, I try to scrap data from Tehran Divar website with python programming language. This website is mainly designed for selling second hand stuffs, however after a while, there are some other services available in the website like housing. I focused on the Tehran Divar, which is dedicated for Tehran city. I scrap housing advertisings in Tehran city.

Prerequisites

I use some famous python libraries like requests, BeautifulSoup, pandas and numpy. In order to do some specific activies, some other libraries seem to be necessary:

  1. selenium (for scrolling down the main page)
  2. unidecode and arabic_reshaper (for working with Farsi characters)
  3. progressbar (for shwoing the progress of link scraping)

Tip The instructio of !pip install ... is written in the notebook to ensure that all libraries are installed in the destination machine.

ChromeDriver is also needed to open and scroll the web page. You need to download the suitable version based on your Operating System. ChromeDriver is an open source tool for automated testing of webapps. It provides capabilities for navigating to web pages, user input, JavaScript execution, and more. ChromeDriver is a standalone server that implements the W3C WebDriver standard.

Files

  1. Scrap.ipynb: Contains the entire python code of project.
  2. AdsUrl.txt: Filled during running program, contains the url of housing advertisements.
  3. Data.csv: It is the dataset of housing in Tehran and is the final output of this project.
  4. Chromedriver.exe: It is used to open and scroll down the main web page.

divar_webscrap's People

Contributors

amiralimadadi avatar mojtabavi 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.