Giter Site home page Giter Site logo

krish-01 / ecommerce-scrapper-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arv-anshul/ecommerce-scrapper-api

0.0 0.0 0.0 707 KB

Provides API endpoints to scrape data from e-commerce websites. (For now flipkart.com only)

Home Page: https://www.linkedin.com/posts/arv-anshul_fastapi-api-ecommerce-activity-7128575593570340864-WE2m

Python 99.70% Makefile 0.30%

ecommerce-scrapper-api's Introduction

E-Commerce Scrapper API

LinkedIn Post GitHub Badge

Welcome to the E-commerce API project! 🌐 This API is designed to scrape valuable data from E-commerce websites, with a focus on Flipkart (for now).

🧐 What I Learned While Creating This API?

  • πŸ•΅οΈ FastAPI Framework: Explored the ins and outs of the powerful FastAPI framework, leveraging its asynchronous capabilities for efficient and speedy data retrieval.
  • πŸ€“ HTTP Request Methods and Status Codes: Delved deeper into HTTP request methods at an intermediate level, mastering the use of various HTTP status codes for a more nuanced and controlled API interaction.
  • πŸ’‘ Error Handling and Exception Tricks: Implemented clever techniques to handle errors and exceptions, ensuring a robust and graceful API experience for users.
  • πŸ—ΊοΈ Pydantic Library and Modular Programming: Explored the versatility of the pydantic library for data validation and modular programming. Embraced object-oriented programming (OOPs) concepts for a more structured and maintainable codebase.
  • πŸ§ͺ Writing Tests: Implemented thorough tests for the FastAPI application, ensuring the reliability and correctness of every API endpoint.

🀝 What You Can Achieve With My APIs?

  • Data Analysis: Conduct in-depth data analysis on the information fetched from E-commerce websites. Gain insights into price variations, product specification differences, and overall market trends.
  • Machine Learning Integration: Leverage the scraped data to build machine learning models. Explore possibilities such as sentiment analysis, product price prediction (for items like Mobiles, Laptops, etc.), and other innovative applications.
  • Custom Use Cases: The versatility of this API allows you to tailor its application to your specific needs. Whether you're interested in market research, trend analysis, or creating unique machine learning applications, the possibilities are vast.
  • Data-Driven Decision Making: Empower your decision-making process with accurate and up-to-date data from E-commerce websites. Use the insights gained to make informed choices in various domains.

πŸ§‘β€πŸ’» Tech Stacks

Stack Tech
Web scraping Python
Backend FastAPI
Data Validation Pydantic
Websites Flipkart
Curl Parser Python

🧩 Usage

  1. Clone this repo.
  2. Install the projects requirements with following command:
pip install -r requirements.txt
  1. Run the fastapi app.
uvicorn --reload ecommerce.api.app:app
  1. Now FastAPI instance is running on your system. So, you can access it on your localhost with the following url:
http://localhost:8000/

For better representation of the APIs head to:

http://localhost:8000/docs

πŸ“Œ API Endpoints

πŸ–ΌοΈ Screenshot of OpenAPI Docs

OpenAPI Docs

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.