Skip to main content

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


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 details)

Uploaded Source

Built Distribution

cssstyle2dict-0.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file cssstyle2dict-0.0.1.tar.gz.

File metadata

  • Download URL: cssstyle2dict-0.0.1.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.4

File hashes

Hashes for cssstyle2dict-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5b2df37a363a5efed10317406aec3cd8b76fdc10ded9617b0e7cb96a8a1f8751
MD5 c99644116c62b470afef0611bfe60065
BLAKE2b-256 1f3c0dc9f75d26f6bfadc40a7cb949d41b070c95245d5a9c6e1d6b72f88f7dec

See more details on using hashes here.

File details

Details for the file cssstyle2dict-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: cssstyle2dict-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.4

File hashes

Hashes for cssstyle2dict-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 854cabf6320e37fc3d983ead28ecefa3878cf88496dee18f7dd1892fc60f98b0
MD5 fc49d85166e2e7adf577b49d7c752985
BLAKE2b-256 f949e5f133b1b4f75f0ed2fb81a5439d2d8a74e281511c9da35d665ec594517b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page