1.2 KiB
1.2 KiB
Open Graph Protocal Parser
pvc-opengraph is based on opengraph-0.2.4, added some extra information: Title, Description, Favicon, and solved some problem:
- Support three-level attribute name.
<meta property="og:image:height" content="1000" />
- Support extracting
favicon.
<link rel="apple-touch-icon" sizes="57x57" href="https://domain.com/img/favicon/icon.png"/>
- Support extracting
Title.
<title>First Title</title>
<meta property="og:title" content="High priority Title" />
- Relative path is automatically converted to absolute path:
if request
https://domain.com/path1/path2get the following:
<meta property="og:image" content="rock.jpg" />
The absolute path is obtained after parsing:
https://domain.com/path1/rock.jpg
-
reqwestupdated to the latest version. Theeditionadopts 2021, andrustlsis enabled by default, which supports better cross platform compilation. -
add feature
poem-openapi. -
unzipdecoding of non-standard servers is supported. few servers ignore the clientAccept-Encodingand always returngzformat data. -
The code passed the
cargo testandcargo clip.