css style to dict
Project description
cssstyle2dict
方便查找css style里面的属性,css反爬虫用的比较多
Sample Code
>>> from cssstyle2dict import styleParsel
>>> css = '.a { float:left } .b { margin-right:-1em } .c { float:left } .a { position:relative }'
>>> style_dict = styleParsel(css)
>>> print(style_dict)
{'a': {'float': 'left', 'position': 'relative'},
'b': {'margin-right': '-1em'},
'c': {'float': 'left'}}
Installation
pip install cssstyle2dict
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cssstyle2dict-0.0.1.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for cssstyle2dict-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 854cabf6320e37fc3d983ead28ecefa3878cf88496dee18f7dd1892fc60f98b0 |
|
MD5 | fc49d85166e2e7adf577b49d7c752985 |
|
BLAKE2b-256 | f949e5f133b1b4f75f0ed2fb81a5439d2d8a74e281511c9da35d665ec594517b |