{"id":21846348,"url":"https://github.com/ashudevcodes/flipkart-webscreping","last_synced_at":"2026-04-14T01:31:04.419Z","repository":{"id":192459670,"uuid":"686763829","full_name":"ashudevcodes/Flipkart-WebScreping","owner":"ashudevcodes","description":"A utility program to extract Flipkart search result products and store them in a CSV file for data analysis","archived":false,"fork":false,"pushed_at":"2025-09-29T13:44:57.000Z","size":53,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-29T15:31:50.216Z","etag":null,"topics":["csv","flipkart","python","webscraping"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashudevcodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-03T21:27:13.000Z","updated_at":"2025-09-29T15:06:02.000Z","dependencies_parsed_at":"2023-09-04T20:41:55.723Z","dependency_job_id":null,"html_url":"https://github.com/ashudevcodes/Flipkart-WebScreping","commit_stats":null,"previous_names":["ashishprasa/flipkart-webscreping","ashudevcodes/flipkart-webscreping"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ashudevcodes/Flipkart-WebScreping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashudevcodes%2FFlipkart-WebScreping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashudevcodes%2FFlipkart-WebScreping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashudevcodes%2FFlipkart-WebScreping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashudevcodes%2FFlipkart-WebScreping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashudevcodes","download_url":"https://codeload.github.com/ashudevcodes/Flipkart-WebScreping/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashudevcodes%2FFlipkart-WebScreping/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31778580,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T00:11:49.126Z","status":"ssl_error","status_checked_at":"2026-04-14T00:10:29.837Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["csv","flipkart","python","webscraping"],"created_at":"2024-11-27T23:13:50.539Z","updated_at":"2026-04-14T01:31:04.401Z","avatar_url":"https://github.com/ashudevcodes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flipkart Web Scraping utilty\n\u003ckdb\u003e\u003cimg width=\"1919\" height=\"1079\" src=\"https://github.com/user-attachments/assets/62f96743-b73c-4890-8e8e-d6d9445ae080\" /\u003e\u003c/kdb\u003e\n\nA program to scrape product information from [Flipkart](https://www.flipkart.com) search result pages. The script extracts product titles, prices, reviews, and links, then saves the data into a CSV file for easy analysis.\n\n## Features\n\n- **Command-line and Interactive Modes**:  \n  - Pass all required class names and search query as command-line arguments, or\n  - Run interactively and enter details when prompted.\n- **Customizable Scraping**:  \n  Specify the class names for product titles, prices, reviews, and product links for better adaptability to Flipkart's frequently changing HTML structure.\n- **CSV Output**:  \n  Results are saved in `allProducts.csv` for convenient analysis.\n\n## Requirements\n\n- Python 3.8+\n- [uv](https://github.com/astral-sh/uv) (For fast and isolated package management)\n- pip (for initial setup if not using `uv`)\n\n## Installation\n\n1. **Install [uv](https://github.com/astral-sh/uv):**\n   ```bash\n   pip install uv\n   ```\n   or follow instructions on the [uv GitHub page](https://github.com/astral-sh/uv#installation).\n\n2. **Install dependencies using uv:**\n   ```bash\n   uv sync\n   ```\n\n## Usage\n\n### 1. Command-line Mode\n\nYou can run the script by passing all required parameters:\n```bash\nuv run main.py \"\u003csearch_query\u003e\" \"\u003ctitle_class\u003e\" \"\u003cprice_class\u003e\" \"\u003creview_class\u003e\" \"\u003cproduct_link_class\u003e\"\n```\nExample:\n```bash\nuv run main.py \"mobile\" \"4rR01T\" \"30jeq3\" \"LWZlK\" \"fQZEK\"\n```\n\n### 2. Interactive Mode\n\nIf you run the script without command-line arguments, it will prompt you to input:\n- The search query (what you want to search for)\n- The class names for title, price, reviews, and product link\n\n```bash\nuv run main.py\n```\nThen, follow the prompts.\n\n### 3. Output\n\n- After the script runs, it will print the scraped data as a table.\n- It will save the results in a file named `allProducts.csv` in the current directory.\n\n## Finding Class Names\n\n1. Go to [Flipkart](https://www.flipkart.com) and search for your desired product.\n2. Use your browser's developer tools (F12) to inspect the HTML elements for product titles, prices, reviews, and product links.\n3. Copy their class names and use them as script arguments or input.\n\n## Notes\n\n- The script scrapes only the first page of results by default. You can modify the `range` in the script to scrape multiple pages.\n- Flipkart's HTML structure may change over time, so you may need to update the class names regularly.\n\n## Disclaimer\n\nThis script is for educational purposes only.  \nScraping websites may violate their Terms of Service. Use responsibly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashudevcodes%2Fflipkart-webscreping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashudevcodes%2Fflipkart-webscreping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashudevcodes%2Fflipkart-webscreping/lists"}