Skip to main content

pykart is module which help to fetch product-data from ecommerce website [flipkart]

Project description

pykart Module

This module will be helpful for Web scraping data of product from an E-commerce site [flipkart]. Product data like name,rating,price,discount. This way data gathering for product will become easy. Need 3 extra module :request,bs4,prettytable to get successfull output.

Installation

Run the following to install:

pip install pykart

##Usage

import pykart as fk

product=input("Product name : ")
fop=fk.pykart(product) #flipkart_op

if fop:
    fop.pg_title()
    c=fop.pg_count()
    print("\n Results found per page : ",c[1],"to",c[3]," Total matches :",c[5])
    #data into table format on command line
    fop.product_details()
    #create control for next,previous page moments
    while True:
        pg_no=input("[Next Page] n | [previous pg] b | [save scrap code] save :")
        if pg_no.lower()=="n":
            fop.next_pg()
        elif pg_no.lower()=="b":
            fop.prev_pg()
        elif pg_no.lower()=="save":
            fop.save_code()
        else:
            print("end")
            break
    #product data in list
    #the data you see from product_details only those products are present in list
    fop.pg_ls()

Developing pykart

To install pykart,along with the tools you need to develop and run tests,run the following in your virtualenv:

$ pip install -e .[dev]

License

(c) 2021 Adesh Dangi GNU GENERAL PUBLIC LICENSE 2007

This repository is licensed under the GNU license, See LICENSE for details.

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

pykart-0.0.4.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

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

pykart-0.0.4-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file pykart-0.0.4.tar.gz.

File metadata

  • Download URL: pykart-0.0.4.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.4

File hashes

Hashes for pykart-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3b19f519723aa70bd4e6d796af077dfa274b917251d67b617fef1a362a7f9bb7
MD5 36f6b681cf4e9220c6ed7c3bf170823c
BLAKE2b-256 ff7edcd73e9dda12041bea244342f0c55e6a1b2fe4bcf4d159f73cea51eaa126

See more details on using hashes here.

File details

Details for the file pykart-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: pykart-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.4

File hashes

Hashes for pykart-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 01b0ba551ece7de41cd2bc24cfe31a9add7fccf60039283d308f8c715b37e24a
MD5 60725093c36923d1afe6efcc50a187f5
BLAKE2b-256 f3236c0ce384eaf71c080499e18d4186c5f5b9288d98bb8ff84d646793201d78

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