[news] normalize URL before performing a join
This commit is contained in:
parent
20105e7d98
commit
eb95480c8f
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ def help_full():
|
||||||
# MODULE CORE #########################################################
|
# MODULE CORE #########################################################
|
||||||
|
|
||||||
def find_rss_links(url):
|
def find_rss_links(url):
|
||||||
|
url = web.getNormalizedURL(url)
|
||||||
soup = BeautifulSoup(web.getURLContent(url))
|
soup = BeautifulSoup(web.getURLContent(url))
|
||||||
for rss in soup.find_all('link', attrs={"type": re.compile("^application/(atom|rss)")}):
|
for rss in soup.find_all('link', attrs={"type": re.compile("^application/(atom|rss)")}):
|
||||||
yield urljoin(url, rss["href"])
|
yield urljoin(url, rss["href"])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue