Skip to main content

Use python to scrap for listings on olx.in based on search query.

Project description

Olx Web Scraper

CLI to Scrape OLX for Ad listing (Optimized for Car/Motocycle ads)

Table of Contents

Installation

  1. Create a virtual enviroment for the repo & activate it
python -m venv venv
cd venv
Scripts\activate.bat
  1. Install the scraper
pip install olx-web-scraper

Usage

  • To get scraping, simple run the following on your prefered terminal:
olx_web_scraper <filename without extension>

Eg: python olx_web_scraper scraped_data

  • Next, input the URL to scrape
OLX Web Scraper!
URL: https://www.olx.in/kerala_g2001160/q-interceptor-650
  • This will then scrape all the listing available and save to a file named scraped_data.csv in your root folder.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

olx_web_scraper-0.2.2.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

olx_web_scraper-0.2.2-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page