ultimate-sitemap-parser
ultimate-sitemap-parser copied to clipboard
RecursionError - maximum recursion depth exceeded while calling a Python object
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