Code Monkey home page Code Monkey logo

scraper-olx's Introduction

Scraper Olx

How does it work?

The olx scraper consist of three stages:

  1. Fetch inventory urls
  2. Fetch inventory data from those url
  3. Download the inventory url

Now, I'll explain each step in detail.

First Step:

Firstly, you get category or your desired search page url from the olx website. When you give that url to the main.py, It will download all the a href tag from the link. and a filter will seperate all item based urls from the non usable urls.

Afterward, all those urls are saved into the database with condition that no duplicate link is being stored.

Second Step:

Second Step, its a bit tricky here. you will need to save the data of each inventory into database. For that, you need to access each data using the script. but, as each data is different. So, we will have to change the entire table structure according to the page of each category.

This step will need a little knowledge of how to code.

Third Step:

Third and the last step, is the most easy step. It downloads the images of the saved inventory from the olx aws server and automatically saved them into their unique folder decided from their database primary key.
Unlike, other step. It is fully automatic and does not require any user input.

scraper-olx's People

Contributors

sameerwasim avatar

Watchers

 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.