MetaScraper
MetaScraper is a extracts metadata information of a website.
Usage
Add the following line to your Cargo.toml file:
= "0.1.0"
let input = include_str!;
let metascraper = parse.unwrap;
let metadata = metascraper.metadata;
println!;
// MetaData {
// title: Some("Title"),
// description: Some("Description"),
// canonical: Some("https://mehmetcan.sahin.dev"),
// language: Some("en"),
// rss: Some("rss.xml"),
// metatags: Some([
// Metatag { name: "X-UA-Compatible", content: "IE=edge" },
// Metatag { name: "viewport", content: "width=device-width, initial-scale=1.0" },
// Metatag { name: "description", content: "Description" }
// ])
// }
License
MetaScraper is licensed under the MIT License.