Releases: jaywink/python-opengraph
0.2.1
0.2.0
0.1.1
0.1.0
0.1.0 (2017-10-14)
Added
-
Use a default user agent if none given.
-
Allow passing a
timeoutthat will be used withrequests.get.A default timeout of 10 seconds will be used if a timeout is not passed in.
Changed
-
No longer fetch other URL's than "http" and "https" protocols.
-
Catch exceptions raised by
requests.get.On an exception, return an empty result and log with warning level to the logger
opengraph.
0.0.3
0.0.3 (2017-10-12)
Released to PyPi under the name python-opengraph-jaywink.
Added
-
OpenGraphnow allows passing in aparserargument, which defaults tohtml.parser.A valid
parseris anythingBeautifulSoupsupports, for examplelxmlorhtml5lib. You must have the right parser installed when callingOpenGraph, except the defaulthtml.parserwhich is built-in to Python.
Fixed
-
OpenGraphno longer "remembers" old OG tags from previous class instances.Data dictionary has been moved from class to instance attributes to ensure clean data is available every time the class is used.