This commit is contained in:
Andrew Cantino 2009-03-04 18:16:41 -08:00
parent bcc1204bc5
commit b873eff139
1 changed files with 30 additions and 0 deletions

30
README Normal file
View File

@ -0,0 +1,30 @@
ABOUT
Python bindings for Parsley.
INSTALLATION
= Get Parsley and Dependancies =
Download Parsley from http://github.com/fizx/parsley/tree/master following the installation directions located at http://github.com/fizx/parsley/blob/master/INSTALL
= Install pyparsely =
sudo python setup.py install
= Example Code =
from pyparsley import PyParsley
parselet = PyParsley({
"title": "title",
"links(a)": [
{
"name": ".",
"href": "@href"
}
]
})
json_string = parselet.parse(file = some_file, output = "json")
# Using Parsley's builtin URI fetching.
json_string = parselet.parse(file = "http://www.example.com/", output = "json")