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 Introduction
lenskart_scraper's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.