All Projects → edg-l → sitewriter

edg-l / sitewriter

Licence: MIT License
A rust library to generate sitemaps.

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to sitewriter

scrape
Depth controllable Web scraper and Sitemap Generator in Go
Stars: ✭ 19 (+5.56%)
Mutual labels:  sitemap, sitemap-generator
Sitemap
PHP XML Sitemap Generation
Stars: ✭ 128 (+611.11%)
Mutual labels:  sitemap, xml
SitemapTools
A sitemap (sitemap.xml) querying and parsing library for .NET
Stars: ✭ 19 (+5.56%)
Mutual labels:  sitemap, xml
Quick Xml
Rust high performance xml reader and writer
Stars: ✭ 480 (+2566.67%)
Mutual labels:  xml, writer
X.Web.Sitemap
Simple sitemap generator for .NET
Stars: ✭ 66 (+266.67%)
Mutual labels:  sitemap, sitemap-generator
sitemap
A simple sitemap generator for Laravel Framework.
Stars: ✭ 32 (+77.78%)
Mutual labels:  sitemap, sitemap-generator
Laravel Sitemap
Create and generate sitemaps with ease
Stars: ✭ 1,325 (+7261.11%)
Mutual labels:  sitemap, xml
Xml
XML without worries
Stars: ✭ 35 (+94.44%)
Mutual labels:  xml, writer
php-sitemap
PHP Simple Sitemap Generator
Stars: ✭ 16 (-11.11%)
Mutual labels:  sitemap, sitemap-generator
jsitemapgenerator
Java sitemap generator. This library generates a web sitemap, can ping Google, generate RSS feed, robots.txt and more with friendly, easy to use Java 8 functional style of programming
Stars: ✭ 38 (+111.11%)
Mutual labels:  sitemap, sitemap-generator
Choetl
ETL Framework for .NET / c# (Parser / Writer for CSV, Flat, Xml, JSON, Key-Value, Parquet, Yaml, Avro formatted files)
Stars: ✭ 372 (+1966.67%)
Mutual labels:  xml, writer
grav-plugin-sitemap
Grav Sitemap Plugin
Stars: ✭ 34 (+88.89%)
Mutual labels:  sitemap, sitemap-generator
Nextjs Sitemap Generator
Generate sitemap.xml from nextjs pages
Stars: ✭ 395 (+2094.44%)
Mutual labels:  sitemap, xml
Sitemap Generator Crawler
Script that generates a sitemap by crawling a given URL
Stars: ✭ 169 (+838.89%)
Mutual labels:  sitemap, xml
express-sitemap-xml
Serve sitemap.xml from a list of URLs in Express
Stars: ✭ 56 (+211.11%)
Mutual labels:  sitemap, sitemap-generator
sitemap-plugin
Sitemap Plugin for Sylius eCommerce platform
Stars: ✭ 68 (+277.78%)
Mutual labels:  sitemap, sitemap-generator
dreamland world
DreamLand MUD: all configuration files, and some areas for local dev
Stars: ✭ 16 (-11.11%)
Mutual labels:  xml
json2xml
json to xml converter in python3
Stars: ✭ 76 (+322.22%)
Mutual labels:  xml
IntroApp
This Android app adds splash screen slides to make a great intro for an app.
Stars: ✭ 16 (-11.11%)
Mutual labels:  xml
spec
Just Data. Save up to 85% network bandwidth and storage.
Stars: ✭ 86 (+377.78%)
Mutual labels:  xml

sitewriter

A library to generate sitemaps.

Version Downloads License Rust Docs crev reviews

It uses the quick-xml so it should be fast.

Example

use chrono::prelude::*;
use sitewriter::{ChangeFreq, UrlEntry, UrlEntryBuilder};

let urls = vec![
    UrlEntryBuilder::default()
        .loc("https://edgarluque.com/projects".parse().unwrap())
        .build()
        .unwrap(),
    UrlEntry {
        loc: "https://edgarluque.com/".parse().unwrap(),
        changefreq: Some(ChangeFreq::Daily),
        priority: Some(1.0),
        lastmod: Some(Utc::now()),
    },
    UrlEntry {
        loc: "https://edgarluque.com/blog".parse().unwrap(),
        changefreq: Some(ChangeFreq::Weekly),
        priority: Some(0.8),
        lastmod: Some(Utc::now()),
    },
    UrlEntry {
        loc: "https://edgarluque.com/blog/sitewriter".parse().unwrap(),
        changefreq: Some(ChangeFreq::Never),
        priority: Some(0.5),
        lastmod: Some(Utc.ymd(2020, 11, 22).and_hms(15, 10, 15)),
    },
    UrlEntry {
        loc: "https://edgarluque.com/blog/some-future-post"
            .parse()
            .unwrap(),
        changefreq: Some(ChangeFreq::Never),
        priority: Some(0.5),
        lastmod: Some(
            Utc.from_utc_datetime(&Local.ymd(2020, 12, 5).and_hms(12, 30, 0).naive_utc()),
        ),
    },
    // Entity escaping
    UrlEntry {
        loc: "https://edgarluque.com/blog/test&id='<test>'"
            .parse()
            .unwrap(),
        changefreq: Some(ChangeFreq::Never),
        priority: Some(0.5),
        lastmod: Some(
            Utc.from_utc_datetime(&Local.ymd(2020, 12, 5).and_hms(12, 30, 0).naive_utc()),
        ),
    },
];

let result = sitewriter::generate_str(&urls);
println!("{}", result);

CREV - Rust code reviews - Raise awareness

Please, spread this info !
Open source code needs a community effort to express trustworthiness.
Start with reading the reviews of the crates you use on web.crev.dev/rust-reviews/crates/
Than install the CLI cargo-crev. Follow the Getting Started guide.
On your Rust project, verify the trustworthiness of all dependencies, including transient dependencies with cargo crev verify
Write a new review !
Describe the crates you trust. Or warn about the crate versions you think are dangerous.
Help other developers, inform them and share your opinion.
Use cargo_crev_reviews to write reviews easily.

License: MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].