Skip to content

Sitemap#39

Open
HN23 wants to merge 2 commits intogreyside:masterfrom
HN23:sitemap
Open

Sitemap#39
HN23 wants to merge 2 commits intogreyside:masterfrom
HN23:sitemap

Conversation

@HN23
Copy link
Contributor

@HN23 HN23 commented Oct 14, 2014

Sitemaps with an index sitemap and sub-sitemaps pointing to public published channels, posts, and tags. Things requiring a user to follow will not show up. I still have to figure out how to and what to test with this branch, but it does create a sitemap that complies with Google News Sitemap's requirements.

sitemap indexing

google news sitemap  support based on requirements via support.google.com creating a Google News Sitemap

sitemaps file added

added tests for sitemaps

cleaned up code
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make these singular.

@SeanHayes
Copy link
Member

The test for this is failing with this assertion error:
AssertionError: Couldn't find 'news:publication' in response

I'd check to see what the actual output is, it might use the full XML namespace instead of the alias you're using in your assertion.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to add assertions for the values these tags contain.

It might be helpful to use an XML parser. This is a good one:
https://pypi.python.org/pypi/xmltodict

@SeanHayes SeanHayes force-pushed the master branch 2 times, most recently from 14805c1 to e3311ab Compare January 25, 2016 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants