Skip to main content

A Selenium-based Swiggy dish scraper returning pandas DataFrames.

Project description

Swiggy Scraper AjaiRosen

A simple Selenium-based Python package to scrape dish search results from Swiggy.

Features

  • Search multiple dishes
  • Set delivery pincode
  • Returns clean pandas DataFrame
  • Headless browser support
  • PyPI installable

Installation

pip install swiggy-scraper-ajairosen

Requirements

  • Google Chrome installed
  • Compatible ChromeDriver installed

Example Usage

from swiggy_scraper_ajairosen.tools import scrape_swiggy_dishes

df = scrape_swiggy_dishes(
    search_terms=[
        "pizza",
        "biryani",
        "shawarma"
    ],
    pincode="500075",
    headless=False
)

print(df.head())

Parameters

Parameter Type Description
search_terms str or list Dish names to search
pincode str Swiggy delivery pincode
headless bool Run browser headlessly
wait_time int Sleep duration between actions

Returns

Pandas DataFrame containing:

  • Dish Name
  • Restaurant
  • Rating
  • Delivery Time
  • Category
  • Description
  • Price

Disclaimer

This package is for educational purposes only. Swiggy website structure may change anytime.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swiggy_scraper_ajairosen-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swiggy_scraper_ajairosen-0.1.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file swiggy_scraper_ajairosen-0.1.2.tar.gz.

File metadata

File hashes

Hashes for swiggy_scraper_ajairosen-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c67825227669a4be12bf67f8caeeca262d223d1749827afe3c86865db205c3f4
MD5 86dff7e7f41592659bfc615020b1478d
BLAKE2b-256 69f1a79e618baac8bfe0d734af96157316e958e9c8383649ab530fdd48b55df5

See more details on using hashes here.

File details

Details for the file swiggy_scraper_ajairosen-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for swiggy_scraper_ajairosen-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 be8359f1a4be607e2489ab1775d8d67374cf892b0298396ba11fde786499a65c
MD5 88e232ce7a450d6145f2cde7d02e73af
BLAKE2b-256 b73e48d6a64af945a8ca00c23c9d269acc7410e070a19843a88a255b1ab49c89

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page