Skip to content

According to http://ogp.me/ description is not required. #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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