turnersoftware / sitemaptools Goto Github PK
View Code? Open in Web Editor NEWA sitemap (sitemap.xml) querying and parsing library for .NET
License: MIT License
A sitemap (sitemap.xml) querying and parsing library for .NET
License: MIT License
Need to remove the requirement to the Robots Nuget package - probably can throw together a really basic implementation to read the rows of a "robots" file to find sitemaps.
Thanks for the library James, it has proven very reliable and easy to use!
EDITED: (because as always, as soon as you submit a github issue you realise where you're wrong).
The problem I'm experiencing is in SitemapQuery.GetAllSitemapsForDomainAsync(domain)
.
The problem occurs when a webserver returns 200-OK, but contains a "whoops" 404 style html page response.
Line 132
of SitemapQuery.cs
correctly identifies the text/html
response, but instead of ignoring it as an invalid response, it throws an exception because there's no parser for html (expected).
I think it would be sensible to update DiscoverSitemapsAsync
function, Line 100
where it checks for successful response code, to also have it check that the content-type is one of those mentioned in the SitemapTypeMapping
dictionary, and if not, consider it an invalid sitemap.
Hi there,
Thanks for this library, I'm myself unfamiliar with sitemaps but hopefully this lib seems to be able to solve my problem.
Can you please provide code examples for this just like you have for https://github.com/TurnerSoftware/RobotsExclusionTools
etc
What i want to do is provide few sitemap (xml based) links, where each sitemap itself will hv location to other sitemaps and so on finally reaching to actual records.
So what methods etc should i use for this?
Regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.