sameerwasim / scraper-olx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About


Languages

Language:Python 100.0%