https://github.com/9akashnp8/olx-web-scraper
Use python to scrap for listings on olx.in based on search query.
https://github.com/9akashnp8/olx-web-scraper
python selenium webscraping
Last synced: about 2 months ago
JSON representation
Use python to scrap for listings on olx.in based on search query.
- Host: GitHub
- URL: https://github.com/9akashnp8/olx-web-scraper
- Owner: 9akashnp8
- License: mit
- Created: 2021-11-14T08:19:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-17T08:39:53.000Z (over 1 year ago)
- Last Synced: 2025-03-12T00:03:58.010Z (2 months ago)
- Topics: python, selenium, webscraping
- Language: Python
- Homepage:
- Size: 66.4 KB
- Stars: 20
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Olx Web Scraper
CLI to Scrape OLX for Ad listing (Optimized for Car/Motocycle ads)## Table of Contents
- [Installation](#installation)
- [Usage](#usage)## Installation
1. Create a virtual enviroment for the repo & activate it
```python
python -m venv venv
cd venv
Scripts\activate.bat
```3. Install the scraper
```python
pip install olx-web-scraper
```## Usage
- To get scraping, simple run the following on your prefered terminal:
```python
olx_web_scraper
```
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.