Metadata-Version: 1.1
Name: xml2data
Version: 0.1.0a
Summary: a library for converting xml into native data
Home-page: https://github.com/slaypni/xml2data
Author: slaypni
Author-email: UNKNOWN
License: MIT
Description: xml2data is a library for converting xml into native data, according to css-selector like format.
        
        Requirements
        ------------
        
        Python 2.x
        
        Example
        -------
        
        the following converts `a webpage <http://hp.vector.co.jp/authors/VA038583/>`_ containing some app information::
        
          import xml2data
          format = """{
            'apps': [div#main-container div.section:first-child div.goods-container div.goods @ {
                'name': div.top span.name,
                'url': div.top span.name a $[href],
                'description': div.goods div.bottom
            }],
            'author': div#main-container div.section div.text p a:first-child $text,
            'twitter': div#main-container div.section div.text p a:nth-child(2) $[href]
          }"""
          data = xml2data.urlload('http://hp.vector.co.jp/authors/VA038583/', format)
        
        results::
        
          data == {
            'apps': [{
                'name': 'copipex',
                'url': './down/copipex023.zip',
                'description': '<コピー⇒貼付け> が <マウスで範囲選択⇒クリック> で可能に'
              }, {
                'name': 'gummi',
                'url': './gummi.html', 
                'description': 'ウィンドウの任意の部分を別窓に表示。操作も可能'
              }, {
                'name': 'PAWSE',
                'url': './down/pawse032.zip',
                'description': 'Pauseキーで、アプリケーションの一時停止、実行速度の制限が可能に'
              }, {
                'name': 'onAir',
                'url': './onair.html',
                'description': '現在放送中のテレビ番組のタイトルを一覧表示'
              }],
            'author': 'slay', 
            'twitter': 'http://twitter.com/slaypni'
          }
              
Keywords: xml html
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Text Processing :: Markup :: HTML
Classifier: Topic :: Text Processing :: Markup :: XML
