diff --git a/README.md b/README.md index a4f8cc9..2b9587e 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Import the parser using: ``` -### Parse an HTML Document from a string +### Parse an HTML Document from a file or string ```pycon >>> with open("test/examples/eras.html") as fp: @@ -57,6 +57,15 @@ Import the parser using: ``` +```pycon +>>> mf2json = mf2py.parse(doc="James") +>>> mf2json["items"] +[{'type': ['h-card'], + 'properties': {'name': ['James'], + 'url': ['https://example.com']}}] + +``` + ### Parse an HTML Document from a URL ```pycon