Skip to content

Conversation

@LeResKP
Copy link

@LeResKP LeResKP commented Feb 28, 2019

Also fix the example.

Please note the example from the readme was not working

HTML = """
...
... <title>The Rock (1996)</title>
...
...
...
...
... ...
...
... ...
... """
import opengraph
movie = opengraph.OpenGraph()
movie.parser(HTML)
movie.is_valid()
False
movie.required_attrs
['title', 'type', 'image', 'url', 'description']
movie.required_attrs.pop(-1)
'description'
movie.is_valid()
True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant