{"id":15008031,"url":"https://github.com/hey-its-d2t2/prodigy-sd-05","last_synced_at":"2026-03-11T19:03:41.341Z","repository":{"id":257229546,"uuid":"855195360","full_name":"hey-its-d2t2/PRODIGY-SD-05","owner":"hey-its-d2t2","description":"A web scraper built using Java Spring Boot, Jsoup, Thymeleaf, and jQuery to extract product details like Name, Price, and Rating from various e-commerce websites. This tool also allows users to download the scraped data as a CSV file for easy analysis. ","archived":false,"fork":false,"pushed_at":"2024-09-16T11:46:24.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T19:59:52.261Z","etag":null,"topics":["css","devtools","git","github","html","jar","java","jsoup","jsoup-html","lombok","maven","productscrap","spring-boot","webscraper"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hey-its-d2t2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-10T13:29:06.000Z","updated_at":"2024-09-16T11:46:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa24cdfa-df0c-4541-aa62-5f85270afdf8","html_url":"https://github.com/hey-its-d2t2/PRODIGY-SD-05","commit_stats":null,"previous_names":["hey-its-d2t2/prodigy-sd-05"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hey-its-d2t2%2FPRODIGY-SD-05","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hey-its-d2t2%2FPRODIGY-SD-05/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hey-its-d2t2%2FPRODIGY-SD-05/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hey-its-d2t2%2FPRODIGY-SD-05/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hey-its-d2t2","download_url":"https://codeload.github.com/hey-its-d2t2/PRODIGY-SD-05/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243180611,"owners_count":20249313,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","devtools","git","github","html","jar","java","jsoup","jsoup-html","lombok","maven","productscrap","spring-boot","webscraper"],"created_at":"2024-09-24T19:14:51.646Z","updated_at":"2026-03-11T19:03:36.310Z","avatar_url":"https://github.com/hey-its-d2t2.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛍️ Product Scraper\n\nA web scraper built using **Java Spring Boot**, **Jsoup**, **Thymeleaf**, and **jQuery** to extract product details like **Name**, **Price**, and **Rating** from various e-commerce websites. This tool also allows users to download the scraped data as a **CSV** file for easy analysis. 📊\n\n## 📑 Table of Contents\n- [Overview](#overview)\n- [Features](#features)\n- [Tech Stack](#tech-stack)\n- [Installation](#installation)\n- [Usage](#usage)\n- [API Endpoints](#api-endpoints)\n- [Screenshots](#screenshots)\n- [Contributing](#contributing)\n- [License](#license)\n- [Contact](#contact)\n\n## 🌟 Overview\n\nThis project is part of my internship at **Prodigy**, where I was tasked with building a product scraping tool to extract data from e-commerce websites. The application allows users to enter the URL of a product page, scrape the data, display the products in a table, and download the results as a CSV file. 🧰\n\n## ✨ Features\n\n- 🛒 Extract product details (Name, Price, Rating) from e-commerce websites.\n- 📝 Input validation for website URLs.\n- 🎨 Beautiful, responsive UI using Bootstrap and custom styling.\n- ⬇️ Download scraped product data as CSV.\n- 🚀 Easy-to-use interface with clear instructions.\n- 🔐 Error handling for invalid URLs or scraping failures.\n\n## 🛠️ Tech Stack\n\n- **Backend**: Java, Spring Boot\n- **Frontend**: Thymeleaf, HTML, CSS, Bootstrap, jQuery\n- **Scraping**: Jsoup (Java HTML parser)\n- **Database**: None (data scraped on demand and not stored)\n- **Tools**: Maven for dependency management\n\n## 🛠️ Installation\n\n1. **Clone the repository**: \n   ```bash\n   git clone https://github.com/yourusername/product-scraper.git\n   cd product-scraper\n   ```\n2. **Install the required dependencies:**\nEnsure you have **Maven** installed, then run:\n    ```bash\n    mvn clean install\n    ```\n2. **Run the application:**\n    ```bash\n    mvn spring-boot:run\n    ```\n4. **Access the application**\n    - Open your browser and navigate to **http://localhost:8080**.\n\n## 💻 Usage\n- Enter the URL of an e-commerce product page (e.g., Amazon, Flipkart).\n- Click on the Scrape button.\n- Scraped product data will be displayed in the table.\n- You can download the product data by clicking on the Download CSV button.\n## 🔗📚 Example URLs for Testing\n  - Books :\n      - http://books.toscrape.com\n  - Amazon (for product data):\n    - https://www.amazon.com/s?k=laptops\n    - https://www.amazon.com/s?k=headphones\n  - Flipkart (for product data):\n    -  https://www.flipkart.com/search?q=mobiles\n    -  https://www.flipkart.com/search?q=shoes\n  - eBay (for product data):\n    - https://www.ebay.com/sch/i.html?_nkw=cameras\n    - https://www.ebay.com/sch/i.html?_nkw=watches\n  - AliExpress (for product data):\n    - https://www.aliexpress.com/wholesale?catId=0\u0026SearchText=smartphone\n    - https://www.aliexpress.com/wholesale?catId=0\u0026SearchText=shoes\n  - Walmart (for product data):\n    - https://www.walmart.com/search/?query=tablets\n    - https://www.walmart.com/search/?query=televisions\n  - BestBuy (for product data):\n    - https://www.bestbuy.com/site/searchpage.jsp?st=laptops\n    - https://www.bestbuy.com/site/searchpage.jsp?st=gaming+consoles\n  - Snapdeal (for product data):\n    -  https://www.snapdeal.com/search?keyword=earphones\n    -  https://www.snapdeal.com/search?keyword=shoes\n\n## 🛠️ API Endpoints\n\n-  The following endpoints are available in this application:\n    - Scrape Products (POST /api/scrap/scrape)\n    - Input: URL of the e-commerce page.\n    - Response: JSON array of product details (name, price, rating).\n    - Download CSV (POST /api/scrap/download)\n    - Input: JSON array of product details.\n    - Response: CSV file containing the scraped data.\n## 📸 Screenshots\n- ###  🏠 Home Page\n  ![Product Scraper - 1](https://github.com/user-attachments/assets/09976a1f-c1a0-45a4-b0e5-98fea014c167)\n\n- ### 📊 Scraped Data Table\n  ![Product Scraper](https://github.com/user-attachments/assets/42141f6e-c9ff-404a-ac4c-7d193f0e92bb)\n\n- ### 📥 CSV Download\n  ![csv](https://github.com/user-attachments/assets/a9da21d2-1490-420c-b854-2e760f18f5e1)\n\n## 🤝 Contributing\nContributions are welcome! 🎉 If you'd like to improve this project, feel free to submit a pull request. Before contributing, please ensure your code adheres to the following guidelines:\n\n- Code must be properly documented.\n- Ensure backward compatibility with previous versions.\n- Follow coding best practices for Java and Spring Boot.\n\n## ⚖️  📞 Contact \u0026 Copyright\n- Product Scraper is an open-source project You’re free to use, modify, and distribute it.\n- © 2024 Deepak Singh | deepsinghkumar01@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhey-its-d2t2%2Fprodigy-sd-05","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhey-its-d2t2%2Fprodigy-sd-05","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhey-its-d2t2%2Fprodigy-sd-05/lists"}