Git Product home page Git Product logo

lenskart_scraper's Introduction

lenskart-scraper


Uage

usage: lenskart-scraper [-h] [--limit LIMIT] [--out OUT]
                        [--out-format {csv,json}] [--parallel PARALLEL]
                        target [target ...]

Scraps any content from lenskart website and outputs in multiple formats.

positional arguments:
  target                The target to scrap. This could be a list of urls or
                        following values:

                        - 'everything': Scrap all information (includes glasses, lenses and stores).
                        - 'glasses': Scrap all glasses information (includes 'eyeglasses', 'sunglasses', ...).
                        - 'eyeglasses': Scrap all eyeglasses information.
                        - 'kidsglasses': Scrap all kidsglasses information.
                        - 'sunglasses': Scrap all sunglasses information.
                        - 'computer-glasses': Scrap all computer-glasses information.
                        - 'power-sunglasses': Scrap all power-sunglasses information.
                        - 'progressive-glasses': Scrap all progressive-glasses information.
                        - 'lenses': Scrap all contact lenses information.
                        - 'stores': Scrap all stores information (includes 'stores-delhi', ...).
                        - 'stores-delhi': Scrap all stores information available in delhi.
                        - 'stores-chennai': Scrap all stores information available in chennai.

options:
  -h, --help            show this help message and exit
  --limit LIMIT         Maximum count of item details to scrap. This is only
                        applilcable for targets which contain multiple items,
                        like 'eyeglasses' and 'stores'. Note: This limit has
                        no effect if more urls are specified than the limit.
  --out OUT             The output to write to, valid options are 'console' or
                        a file path.
  --out-format {csv,json}
                        The format in which to output the scraped infomration.
                        The default value for 'console' is 'json'. For files
                        with the output format is derived from its extension.
                        The default value for file with no extension is 'csv'.
  --parallel PARALLEL   Enables parallel scraping. The value represents number
                        of parallel scrapers to run at once.

lenskart_scraper's People

Contributors

shifu-dev avatar akankshamaloo avatar sk417 avatar monishk12 avatar vasanthakumar23 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.