-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsetup.py
55 lines (47 loc) · 1.71 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/env python
from distutils.core import setup
setup(name='parslepy',
version='0.3.0',
description='Parsley extraction library using lxml',
long_description="""
========
Parslepy
========
Parslepy lets you extract content from HTML and XML documents
where extraction rules are defined using a JSON object
or equivalent Python dict,
where keys are names you want to assign to extracted content,
and values are CSS selectors or XPath expressions.
Parslepy is an implementation of the Parsley extraction
language defined `here <https://github.com/fizx/parsley>`_,
using lxml and cssselect.
You can nest objects, generate list of objects, and (to
a certain extent) mix CSS and XPath.
Parslepy uderstands what lxml and cssselect understand,
which is roughly CSS3 selectors and XPath 1.0 expressions.
Documentation & examples
========================
See https://github.com/redapple/parslepy/wiki#usage
""",
author='Paul Tremberth',
author_email='[email protected]',
packages=['parslepy'],
requires=['lxml', 'cssselect'],
install_requires=[
"lxml >= 2.3",
"cssselect",
],
classifiers = [
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Markup :: HTML',
'Topic :: Text Processing :: Markup :: XML',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: MIT License',
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
],
url = 'https://github.com/redapple/parslepy',
)