Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added atom and sitemap link extractors, added attribute for xpath link #81

Merged
merged 1 commit into from
Feb 1, 2014
Merged

added atom and sitemap link extractors, added attribute for xpath link #81

merged 1 commit into from
Feb 1, 2014

Conversation

kalessin
Copy link
Contributor

extractor that allows to remove namespaces.

@@ -451,6 +451,8 @@ type : string
* ``module`` - value is a python module path. Link source is a ``scrapy.http.Response`` or subclass, depending on implementation requirements.
* ``html`` - a shortcut for ``module`` type with value ``slybot.linkextractor.HtmlLinkExtractor``. The content of the value attribute is ignored. Source is a ``scrapely.htmlpage.HtmlPage`` object or a ``scrapy.http.HtmlResponse``.
* ``rss`` - a shortcut for ``xpath`` type with value ``//item/link/text()``. The content of the value attribute is ignored.
* ``sitemap.xml`` - shortcut for ``xpath`` type with value ``//urlset/url/loc/text()`` and removed namespaces. The content of the value attribute is ignored.
Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer just sitemap for the name - shorter, more consistent (none of the others use dots)

Copy link
Member

Choose a reason for hiding this comment

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

What about nested sitemaps?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used sitemap.xml because the word sitemap is used in general for many types of sitemaps, but sitemap.xml is a specif format. But for me it is OK to use 'sitemap' instead (although I am not convinced to do so)

I will add support for nested sitemaps.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed both issues. PR is updated.

pablohoffman added a commit that referenced this pull request Feb 1, 2014
added atom and sitemap link extractors, added attribute for xpath link
@pablohoffman pablohoffman merged commit fd036cd into scrapy:master Feb 1, 2014
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