# Flipkart Scraper
A Python package to scrape product details such as price, title, rating, and other information from Flipkart.com. This package offers both an all-in-one method for retrieving all product details at once and separate methods for retrieving specific product details.
## Features
- Get product title
- Get product price
- Get product rating
- Get all product details at once
## Installation
You can install the `abhi-flipkart` package using `pip`:
```bash
pip install abhi-flipkart
```
Requirements
Make sure you have the following packages installed:
requests
beautifulsoup4
These will be automatically installed with the package.
## Usage
```python
from flipkart import FlipkartScraper
# Provide the product URL
product_url = 'https://www.flipkart.com/samsung-galaxy-s23-fe-purple-256-gb/p/itm8f6a49271bf21?pid=MOBGVTA2VGHCJFGG&lid=LSTMOBGVTA2VGHCJFGG1TC2LI&marketplace=FLIPKART&store=tyy%2F4io&srno=b_1_1&otracker=CLP_BannerX3&fm=organic&iid=en_Xqy_OHyrcQALLToVeCOiYi6XfZ1TBn8U_wcElBhYNuR7OzG-guKfCEmcxu3dm4paf1YFLsimTplvCE6DlbZbrvUFjCTyOHoHZs-Z5_PS_w0%3D&ppt=clp&ppn=mobile-phones-store&ssid=stxkg1hx740000001729468470030'
# Create a scraper instance
scraper = FlipkartScraper(product_url)
# Get individual details
title = scraper.get_title()
price = scraper.get_price()
rating = scraper.get_rating()
# Get all details at once
details = scraper.get_all_details()
print(f"Title: {title}")
print(f"Price: {price}")
print(f"Rating: {rating}")
print(f"Details: {details}")
```
## License
Raw data
{
"_id": null,
"home_page": "https://github.com/your-github/flipkart_scraper",
"name": "abhi-scraper",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Abhishek Kumar",
"author_email": "your-email@example.com",
"download_url": "https://files.pythonhosted.org/packages/8e/84/503d63c1134b9aab666f4a0ff719214689f84d6b0734146168905e741aa3/abhi_scraper-1.0.0.tar.gz",
"platform": null,
"description": "# Flipkart Scraper\n\nA Python package to scrape product details such as price, title, rating, and other information from Flipkart.com. This package offers both an all-in-one method for retrieving all product details at once and separate methods for retrieving specific product details.\n\n## Features\n\n- Get product title\n- Get product price\n- Get product rating\n- Get all product details at once\n\n## Installation\n\nYou can install the `abhi-flipkart` package using `pip`:\n\n```bash\npip install abhi-flipkart\n```\n\nRequirements\nMake sure you have the following packages installed:\n\nrequests\nbeautifulsoup4\nThese will be automatically installed with the package.\n\n\n\n## Usage\n\n```python\nfrom flipkart import FlipkartScraper\n\n# Provide the product URL\nproduct_url = 'https://www.flipkart.com/samsung-galaxy-s23-fe-purple-256-gb/p/itm8f6a49271bf21?pid=MOBGVTA2VGHCJFGG&lid=LSTMOBGVTA2VGHCJFGG1TC2LI&marketplace=FLIPKART&store=tyy%2F4io&srno=b_1_1&otracker=CLP_BannerX3&fm=organic&iid=en_Xqy_OHyrcQALLToVeCOiYi6XfZ1TBn8U_wcElBhYNuR7OzG-guKfCEmcxu3dm4paf1YFLsimTplvCE6DlbZbrvUFjCTyOHoHZs-Z5_PS_w0%3D&ppt=clp&ppn=mobile-phones-store&ssid=stxkg1hx740000001729468470030'\n\n# Create a scraper instance\nscraper = FlipkartScraper(product_url)\n\n# Get individual details\ntitle = scraper.get_title()\nprice = scraper.get_price()\nrating = scraper.get_rating()\n\n# Get all details at once\ndetails = scraper.get_all_details()\n\nprint(f\"Title: {title}\")\nprint(f\"Price: {price}\")\nprint(f\"Rating: {rating}\")\nprint(f\"Details: {details}\")\n```\n\n## License\n\n\n\n",
"bugtrack_url": null,
"license": null,
"summary": "A Python package to scrape Flipkart product details",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/your-github/flipkart_scraper"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "350cf3cdc49df14e398beae4f8c944bbfb0eee6b51f3f8bf84348fbd8b011f55",
"md5": "187e6b0ea5cfa7a09839a7029c65079d",
"sha256": "b89cc82acbc044048a1b8fb2e2afab6969ca1be965f637c451fa84aba5a7dcf3"
},
"downloads": -1,
"filename": "abhi_scraper-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "187e6b0ea5cfa7a09839a7029c65079d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 3520,
"upload_time": "2024-10-21T18:39:55",
"upload_time_iso_8601": "2024-10-21T18:39:55.447021Z",
"url": "https://files.pythonhosted.org/packages/35/0c/f3cdc49df14e398beae4f8c944bbfb0eee6b51f3f8bf84348fbd8b011f55/abhi_scraper-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8e84503d63c1134b9aab666f4a0ff719214689f84d6b0734146168905e741aa3",
"md5": "0c6ca33bb1992851d0a04166a583a2c4",
"sha256": "b4cd6d69fc67ad2b112fcb39bee8e2ff9780a804d6ef4f9cc33c6dda3c868565"
},
"downloads": -1,
"filename": "abhi_scraper-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "0c6ca33bb1992851d0a04166a583a2c4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 3110,
"upload_time": "2024-10-21T18:39:56",
"upload_time_iso_8601": "2024-10-21T18:39:56.783097Z",
"url": "https://files.pythonhosted.org/packages/8e/84/503d63c1134b9aab666f4a0ff719214689f84d6b0734146168905e741aa3/abhi_scraper-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-21 18:39:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "your-github",
"github_project": "flipkart_scraper",
"github_not_found": true,
"lcname": "abhi-scraper"
}