Skip to main content

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:

pip install abhi-flipkart

Requirements Make sure you have the following packages installed:

requests beautifulsoup4 These will be automatically installed with the package.

Usage

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

Metadata

Release files for abhi-flipkart 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for abhi-flipkart 1.0.2
File Size Uploaded Provenance
abhi_flipkart-1.0.2.tar.gz 3.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for abhi-flipkart 1.0.2
File Interpreter ABI Platform
abhi_flipkart-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / abhi_flipkart-1.0.2.tar.gz

Download URL abhi_flipkart-1.0.2.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a54949fb2ad7d4c657d9fa57de9e3f57f61ec84d96796feab3e9718195b7b013
BLAKE2b-256 checksum
How to use checksums
3d1ef64c3ab34b2d54b692df25bbff529f393dbee21ebb43c76a481c5395813d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release files / abhi_flipkart-1.0.2-py3-none-any.whl

Download URL abhi_flipkart-1.0.2-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2756c2af02ef937f49f3911bffa168176ee7becd9152003b07bb87471e33bcc3
BLAKE2b-256 checksum
How to use checksums
21586ab12adba5c21b283c812ad995b1b4e43fecd5ff7165788999e731687b2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Security for abhi-flipkart 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page