Browse Source

removes anchor links

pysitemap-python-2.7
Kamo Petrosyan 8 years ago
parent
commit
1c55865aa9
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      pysitemap/crawler.py
  2. +1
    -1
      setup.py

+ 2
- 0
pysitemap/crawler.py View File

@ -101,6 +101,8 @@ class Crawler:
def is_valid(self, url): def is_valid(self, url):
valid = False valid = False
if '#' in url:
url = url[:url.find('#')]
if url in self.visited: if url in self.visited:
return False return False
if not self.url in url: if not self.url in url:


+ 1
- 1
setup.py View File

@ -13,7 +13,7 @@ setup(
version=get_version( version=get_version(
major=0, major=0,
minor=3, minor=3,
build=8,
build=9,
), ),
packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES), packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES),
include_package_data=True, include_package_data=True,


Loading…
Cancel
Save