Giter VIP home page Giter VIP logo

sitemaptools's People

Contributors

alexradch avatar dependabot-preview[bot] avatar dependabot[bot] avatar marjani avatar smissingham avatar turnerj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sitemaptools's Issues

Convert to .Net Standard

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.

Support for Sitemap Response with text/html Content Type

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.

Code Example or Documentation

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.