# Flipkart Scraper
Flipkart Scraper is a Python library designed for extracting detailed product information from Flipkart. This library utilizes web scraping techniques to gather data such as title, price, rating, number of reviews, and description from a given Flipkart product URL.
## Installation
### 1. Prerequisites
Before installing Flipkart Scraper, make sure you have the following prerequisites installed on your system:
- Python (version 3.6 and above)
- pip (Python package installer)
### 2. Install Flipkart Scraper
Use pip to install Flipkart Scraper:
```bash
pip install flipkart-scraper
```
### 3. Verify Installation
You can verify the installation by running the following command
```bash
flipkart-scraper --version
```
## Usage/Examples
### To use Flipkart Scraper, follow these simple steps:
```python
from thevk.flipkartscraper import FlipkartScraper
# Replace the URL with the Flipkart product you want to scrape
url = "https://www.flipkart.com/some-product"
# Initialize the FlipkartScraper with the provided URL
scraper = FlipkartScraper(url)
```
## In-Built Methods:
### 1. get_title()
This method returns the title of the product.
```python
title = scraper.get_title()
print("Title:", title)
```
### 2. get_price()
This method returns the price of the product
```python
price = scraper.get_price()
print("Price:", price)
```
### 3. get_rating()
This method returns the rating of the product.
```python
rating = scraper.get_rating()
print("Rating:", rating)
```
### 4. get_num_reviews()
This method returns the number of reviews for the product.
```python
num_reviews = scraper.get_num_reviews()
print("Number of Reviews:", num_reviews)
```
### 5. get_description()
This method returns the description of the product.
```python
description = scraper.get_description()
print("Description:", description)
```
## Acknowledgements
- [Requests](https://docs.python-requests.org/en/latest/) - HTTP library for Python
- [Beautiful Soup](https://www.crummy.com/software/BeautifulSoup/) - HTML parsing library for Python
## About the Author
Hi there! 👋 I'm Durga Venu Kumar Mutyala, the author of Flipkart Scraper. I'm passionate about AI, Automation and many more.
## Contact
- **Email:** thevk22@gmail.com
- **LinkedIn:** [Durga Venu Kumar Mutyala](https://www.linkedin.com/in/venukumarmd/)
- **Twitter:** [@thevk22](https://twitter.com/thevk22)
Feel free to reach out if you have any questions, suggestions, or just want to connect. I'd love to hear from you!
Happy coding! 🚀
## Contributing to Flipkart Scraper
Contributions are always welcome!
Thank you for considering contributing to Flipkart Scraper! Your contributions help make this project better.
## Code of Conduct
This project and everyone participating in it are governed by the [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [your email or a moderation contact].
## How to Contribute
### 1. Fork the repository to your GitHub account.
### 2. Clone the forked repository to your local machine.
```bash
git clone https://github.com/yourusername/flipkart-scraper.git
cd flipkart-scraper
```
### 3. Create a new branch for your feature or bug fix.
```bash
git checkout -b feature/your-feature
```
#### Make your changes and ensure they are working as expected.
### 4. Commit your changes.
```bash
git commit -m "Add your feature or fix"
```
### 5. Push the changes to your GitHub repository.
```bash
git push origin feature/your-feature
```
Raw data
{
"_id": null,
"home_page": "https://github.com/mdvenukumar/flipkart-scraper",
"name": "flipkart-scraper",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "flipkart scraper web scraping",
"author": "Mutyala Durga Venu Kumar",
"author_email": "thevk22@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/33/05/08f3116bf02162c552f58a275add655d5f478e08e0ca69e1298193c97251/flipkart-scraper-0.1.tar.gz",
"platform": null,
"description": "# Flipkart Scraper\r\n\r\nFlipkart Scraper is a Python library designed for extracting detailed product information from Flipkart. This library utilizes web scraping techniques to gather data such as title, price, rating, number of reviews, and description from a given Flipkart product URL.\r\n\r\n\r\n\r\n\r\n## Installation\r\n\r\n### 1. Prerequisites\r\n\r\nBefore installing Flipkart Scraper, make sure you have the following prerequisites installed on your system:\r\n\r\n- Python (version 3.6 and above)\r\n- pip (Python package installer)\r\n\r\n### 2. Install Flipkart Scraper\r\nUse pip to install Flipkart Scraper:\r\n```bash\r\npip install flipkart-scraper\r\n```\r\n### 3. Verify Installation\r\nYou can verify the installation by running the following command\r\n```bash\r\nflipkart-scraper --version\r\n```\r\n\r\n\r\n## Usage/Examples\r\n\r\n### To use Flipkart Scraper, follow these simple steps:\r\n\r\n```python\r\nfrom thevk.flipkartscraper import FlipkartScraper\r\n\r\n# Replace the URL with the Flipkart product you want to scrape\r\nurl = \"https://www.flipkart.com/some-product\"\r\n\r\n# Initialize the FlipkartScraper with the provided URL\r\nscraper = FlipkartScraper(url)\r\n```\r\n\r\n\r\n\r\n## In-Built Methods:\r\n### 1. get_title()\r\nThis method returns the title of the product.\r\n```python\r\ntitle = scraper.get_title()\r\nprint(\"Title:\", title)\r\n```\r\n### 2. get_price()\r\nThis method returns the price of the product\r\n```python\r\nprice = scraper.get_price()\r\nprint(\"Price:\", price)\r\n```\r\n### 3. get_rating()\r\nThis method returns the rating of the product.\r\n```python\r\nrating = scraper.get_rating()\r\nprint(\"Rating:\", rating)\r\n```\r\n### 4. get_num_reviews()\r\nThis method returns the number of reviews for the product.\r\n```python\r\nnum_reviews = scraper.get_num_reviews()\r\nprint(\"Number of Reviews:\", num_reviews)\r\n```\r\n### 5. get_description()\r\nThis method returns the description of the product.\r\n```python\r\ndescription = scraper.get_description()\r\nprint(\"Description:\", description)\r\n```\r\n## Acknowledgements\r\n\r\n- [Requests](https://docs.python-requests.org/en/latest/) - HTTP library for Python\r\n- [Beautiful Soup](https://www.crummy.com/software/BeautifulSoup/) - HTML parsing library for Python\r\n\r\n\r\n\r\n## About the Author\r\n\r\nHi there! \u00f0\u0178\u2018\u2039 I'm Durga Venu Kumar Mutyala, the author of Flipkart Scraper. I'm passionate about AI, Automation and many more.\r\n\r\n## Contact\r\n\r\n- **Email:** thevk22@gmail.com\r\n- **LinkedIn:** [Durga Venu Kumar Mutyala](https://www.linkedin.com/in/venukumarmd/)\r\n- **Twitter:** [@thevk22](https://twitter.com/thevk22)\r\n\r\nFeel free to reach out if you have any questions, suggestions, or just want to connect. I'd love to hear from you!\r\n\r\n\r\nHappy coding! \u00f0\u0178\u0161\u20ac\r\n\r\n\r\n\r\n\r\n## Contributing to Flipkart Scraper\r\n\r\nContributions are always welcome!\r\n\r\nThank you for considering contributing to Flipkart Scraper! Your contributions help make this project better.\r\n\r\n## Code of Conduct\r\n\r\nThis project and everyone participating in it are governed by the [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [your email or a moderation contact].\r\n\r\n## How to Contribute\r\n\r\n### 1. Fork the repository to your GitHub account.\r\n### 2. Clone the forked repository to your local machine.\r\n\r\n```bash\r\ngit clone https://github.com/yourusername/flipkart-scraper.git\r\ncd flipkart-scraper\r\n```\r\n### 3. Create a new branch for your feature or bug fix.\r\n```bash\r\ngit checkout -b feature/your-feature\r\n```\r\n#### Make your changes and ensure they are working as expected.\r\n### 4. Commit your changes.\r\n\r\n```bash\r\ngit commit -m \"Add your feature or fix\"\r\n```\r\n### 5. Push the changes to your GitHub repository.\r\n```bash\r\ngit push origin feature/your-feature\r\n```\r\n",
"bugtrack_url": null,
"license": "",
"summary": "A Flipkart scraper for extracting product information",
"version": "0.1",
"project_urls": {
"Bug Reports": "https://github.com/mdvenukumar/flipkart-scraper/issues",
"Homepage": "https://github.com/mdvenukumar/flipkart-scraper",
"Source": "https://github.com/mdvenukumar/flipkart-scraper"
},
"split_keywords": [
"flipkart",
"scraper",
"web",
"scraping"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "631537262d1db4b747296466dedf9227fe8bbf8356628e261e91c635ec49ebf1",
"md5": "ff979dcc2b74d17315585c033d842194",
"sha256": "cb8a6f69c8c104a39eae12cd5fea61af7b3e402411822818885af2b13f15ca0e"
},
"downloads": -1,
"filename": "flipkart_scraper-0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ff979dcc2b74d17315585c033d842194",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3807,
"upload_time": "2024-01-21T19:50:46",
"upload_time_iso_8601": "2024-01-21T19:50:46.071614Z",
"url": "https://files.pythonhosted.org/packages/63/15/37262d1db4b747296466dedf9227fe8bbf8356628e261e91c635ec49ebf1/flipkart_scraper-0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "330508f3116bf02162c552f58a275add655d5f478e08e0ca69e1298193c97251",
"md5": "e3ff4689744e68219589b2a9932583e4",
"sha256": "c79ace8bc23ea64daef940cf100450ade3b2a872cc2ba1c25ed6c870763523e6"
},
"downloads": -1,
"filename": "flipkart-scraper-0.1.tar.gz",
"has_sig": false,
"md5_digest": "e3ff4689744e68219589b2a9932583e4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3969,
"upload_time": "2024-01-21T19:50:48",
"upload_time_iso_8601": "2024-01-21T19:50:48.353036Z",
"url": "https://files.pythonhosted.org/packages/33/05/08f3116bf02162c552f58a275add655d5f478e08e0ca69e1298193c97251/flipkart-scraper-0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-21 19:50:48",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mdvenukumar",
"github_project": "flipkart-scraper",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "flipkart-scraper"
}