It would be useful if Feeds module could provide a parser for Google Sitemap format. This format basically contains a Url, a last-modified date, a change frequency hint, and a priority hint.

See http://en.wikipedia.org/wiki/Sitemaps and http://www.sitemaps.org/

Comments

lyricnz’s picture

Status: Active » Needs review
StatusFileSize
new914 bytes
new1.55 KB

Here's a parser, and a sample XML from http://www.sitemaps.org/protocol.php#sitemapXMLExample

(renamed to avoid restrictions on file extensions)

lyricnz’s picture

StatusFileSize
new1.48 KB

Updated comments

alex_b’s picture

Status: Needs review » Needs work

Very interesting. I like it.

Missing: a plugin definition in the hook_feeds_plugin().

lyricnz’s picture

Status: Needs work » Needs review
StatusFileSize
new9.35 KB

Updated patch with:
- real patch file, including new files
- hook_feeds_plugin() update
- simpletest for FeedsSitemapParser

alex_b’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new9.55 KB

Minor adjustments (fixed last test assertion, changed order of methods in parser to follow other parser's method order). Will commit soon.

alex_b’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thank you.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

drvdt’s picture

Version: 6.x-1.x-dev » 7.x-2.0-alpha7
Assigned: Unassigned » drvdt
Status: Closed (fixed) » Active

This is good idea!
Is there any update for D7?
Many thanks

  • alex_b committed b21cd3e on 7.x-1.x
    #759904 lyricnz: Provide a Google Sitemap Parser.
    
    
megachriz’s picture

Assigned: drvdt » Unassigned
Issue summary: View changes
Status: Active » Closed (fixed)

The sitemap parser is also in the 7.x-2.x release. It is called "Sitemap parser".