minichiello / PyOpenGraph

PyOpenGraph is a library written in Python for parsing Open Graph protocol information from web sites.

Home Page:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

creating new object gives AttributeError: 'module' object has no attribute 'PyOpenGraph'

dtenenba opened this issue · comments

import PyOpenGraph
og = PyOpenGraph("")


TypeError: 'module' object is not callable

This is with the latest version of PyOpenGraph pulled from Github today, and python 2.7.10, on Mac OS X 10.10.5.

Note that if I run python PyOpenGraph,py it does, work, printing out some page metadata, but if I put the above lines in a script or in the python (or ipython) console, I get the error above.