abhi-flipkart


Nameabhi-flipkart JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/your-github/flipkart_scraper
SummaryA Python package to scrape Flipkart product details
upload_time2024-10-21 18:16:23
maintainerNone
docs_urlNone
authorAbhishek Kumar
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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-flipkart",
    "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/3d/1e/f64c3ab34b2d54b692df25bbff529f393dbee21ebb43c76a481c5395813d/abhi_flipkart-1.0.2.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.2",
    "project_urls": {
        "Homepage": "https://github.com/your-github/flipkart_scraper"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "21586ab12adba5c21b283c812ad995b1b4e43fecd5ff7165788999e731687b2a",
                "md5": "4655d8883761725f639364b1a958eb63",
                "sha256": "2756c2af02ef937f49f3911bffa168176ee7becd9152003b07bb87471e33bcc3"
            },
            "downloads": -1,
            "filename": "abhi_flipkart-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4655d8883761725f639364b1a958eb63",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 3520,
            "upload_time": "2024-10-21T18:16:20",
            "upload_time_iso_8601": "2024-10-21T18:16:20.574538Z",
            "url": "https://files.pythonhosted.org/packages/21/58/6ab12adba5c21b283c812ad995b1b4e43fecd5ff7165788999e731687b2a/abhi_flipkart-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3d1ef64c3ab34b2d54b692df25bbff529f393dbee21ebb43c76a481c5395813d",
                "md5": "2aa7cb7acab669f8fb2abe4ecea63041",
                "sha256": "a54949fb2ad7d4c657d9fa57de9e3f57f61ec84d96796feab3e9718195b7b013"
            },
            "downloads": -1,
            "filename": "abhi_flipkart-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "2aa7cb7acab669f8fb2abe4ecea63041",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 3119,
            "upload_time": "2024-10-21T18:16:23",
            "upload_time_iso_8601": "2024-10-21T18:16:23.037252Z",
            "url": "https://files.pythonhosted.org/packages/3d/1e/f64c3ab34b2d54b692df25bbff529f393dbee21ebb43c76a481c5395813d/abhi_flipkart-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-21 18:16:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "your-github",
    "github_project": "flipkart_scraper",
    "github_not_found": true,
    "lcname": "abhi-flipkart"
}
        
Elapsed time: 0.41812s