Giter Site home page Giter Site logo

pintoza / eyewear-retailer-scraper-aggregator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 11.68 MB

Web scraper that aggregates and standardizes store locator data from various eyewear retailers for data analysis and mapping purposes

License: MIT License

Python 100.00%
beautifulsoup fuzzywuzzy requests storelocator webscraping

eyewear-retailer-scraper-aggregator's Introduction

Eyewear Retailer Store Locator Webscraper and Aggregator

Project Overview

This project involves scraping retailer store locator data using REST APIs and BeautifulSoup.

In this case, the primary goal was to extract name and address pairs from various eyewear retailers and merge them into a consolidated dataset, ensuring accuracy and consistency in address formatting.

Since names and addresses can be entered into system databases with slightly differing formats from firm to firm (ie. "DR SMITH, 1001 Parkway East, Binghamton, NY 13905" versus "Dr. Smith, 1001 Pkwy E., Binghamton, NY 13905") this introduces a high likelihood of multi-counting any given true name, address pair.

To mitigate this issue, I use Fuzzy string-matching techniques to account for subtle differences in names and addresses and aggregate pairs using a moderate assumption of these differences across firm entries.

Directory Structure

.
├── .idea                   # IDE-specific configurations
├── data                    # Raw data from scraping
├── final_data              # Processed data ready for merging
├── merged_data             # Final merged dataset
├── scrapers                # Scripts for scraping store locators
├── utils                   # Utility scripts for data processing
├── README.md               # Project documentation
└── requirements.txt        # Python dependencies

Key Features

  • Data Scraping: Tailored scripts for scraping store locator data using API requests and HTML parsing.
  • Data Processing: Standardization and preprocessing scripts to ensure data consistency.
  • Data Merging: Fuzzy string matching (Levenshtein distance) to merge datasets with consistent address formats.

Getting Started

To set up and run this project locally, follow these steps:

  1. Clone the repository:
git clone https://github.com/yourusername/your-repository-name.git
  1. Navigate to the project:
cd eyewear-retailer-scraper-aggregator
  1. Install requirements:
pip install -r requirements.txt

Usage

  1. Run the scrapers:
python scrapers/<script_name>.py
  1. Data Processing:
python utils/<script_name>.py

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

eyewear-retailer-scraper-aggregator's People

Stargazers

 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.