forked from minichiello/PyOpenGraph
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
55 lines (43 loc) · 1.69 KB
/
setup.py
File metadata and controls
55 lines (43 loc) · 1.69 KB
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
from distutils.core import setup
setup(
name = 'PyOpenGraph',
version = '0.1',
description = 'PyOpenGraph is a library written in Python for parsing Open Graph protocol information from web sites.',
author = 'Gerson Minichiello',
author_email = 'gerson.minichiello@gmail.com',
url='http://github.com/minichiello/PyOpenGraph',
download_url = 'http://pypi.python.org/pypi/PyOpenGraph',
platforms = 'Any',
license = 'MIT License',
long_description='''\
=============
PyOpenGraph
=============
PyOpenGraph is a library written in Python for parsing Open Graph protocol information from web sites.
Learn more about the protocol at:
http://opengraphprotocol.org
--------------
Installation
--------------
To install, download the archive at http://pypi.python.org/pypi/PyOpenGraph and decompress, run python setup.py install.
-------
Usage
-------
::
import PyOpenGraph
og = PyOpenGraph('http://www.rottentomatoes.com/m/10011268-oceans/')
print og.metadata # => {'url': 'http://www.rottentomatoes.com/m/10011268-oceans/', 'site_name': 'Rotten Tomatoes', 'image': 'http://images.rottentomatoes.com/images/movie/custom/68/10011268.jpg', 'type': 'movie', 'title': 'Oceans'}
print og.metadata['title'] # => Oceans
og.is_valid() # => return True or False
''',
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)