ultimate-sitemap-parser icon indicating copy to clipboard operation
ultimate-sitemap-parser copied to clipboard

RecursionError - maximum recursion depth exceeded while calling a Python object

Open caligoig opened this issue 3 years ago • 0 comments

I am having issues with parsing some of the urls. Code generates ResursionError as on image attached. In code sample I added two urls causing this issue.

from usp.tree import sitemap_tree_for_homepage
url1='https://infirmaryhealth.org/'
t = sitemap_tree_for_homepage(url1)
url2='https://www.kdhmadison.org/'
t = sitemap_tree_for_homepage(url2)

Following scenario happens when robots.txt as Sitemap contains itself, ie a Sitemap entry with robots.txt image

caligoig avatar Feb 20 '22 15:02 caligoig