Metadata-Version: 2.1
Name: olx-web-scraper
Version: 0.2.2
Summary: Use python to scrap for listings on olx.in based on search query.
License: MIT
Author: Akash NP
Author-email: akashnp1998@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: beautifulsoup4 (>=4.11.2,<5.0.0)
Requires-Dist: dnspython (>=2.3.0,<3.0.0)
Requires-Dist: pymongo (>=4.3.3,<5.0.0)
Requires-Dist: python-decouple (>=3.8,<4.0)
Requires-Dist: selenium (>=4.8.2,<5.0.0)
Requires-Dist: webdriver-manager (>=3.8.5,<4.0.0)
Description-Content-Type: text/markdown

<img align="right" width="150" height="auto" src="https://i.imgur.com/uHdBRp2.png">

# 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 <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.
<!-- ![](https://i.imgur.com/iptsDh1.png) -->
