Skip to content

crisvegadev/css-scrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

css scrapper

A simple css scraper that can be used to extract the style structure of website.

Features

  • Extract the style structure of website.
  • output the style structure in sass format.

Installation

Manual

  $ git clone https://github.com/crisvegadev/css-scrapper
  $ cd css-scrapper
  $ python setup.py install

Usage

$ python css-scrapper scrap --url https://www.google.com --element body --output output.sass --show-output

This will output the style structure of the website and saved in the directory:

'./output/results.sass'.

Options

  • --url:The url of the website that you want to extract the style structure.
  • --element:The element that you want to extract the style structure.
  • --output: The output file name.
  • --show-output: Show the output of the scrapper in console.
  • --help: Show the help.

Example

Content of the file:

'./output/results.sass'
.container
  .row
    .col-md-4
    .col-md-4
    .col-md-4

About

A simple css scraper that can be used to extract the style structure of website.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages