kaflesudip/grabfeed

Why not check if URL contains the http substring?

Closed this issue · 0 comments

When I run

rss_feed = return_rss('engadget.com')

it prompts

requests.exceptions.MissingSchema: Invalid URL 'engadget.com': No schema supplied. Perhaps you meant http://engadget.com?

It would be nice if your code could check in advance if the URL contained the http, or if it could preappend to URL in case it was missing, so that you are error free.

However I understand it could be a whim of mine, and I could easily check the URL before feeding it into your code.

Thanks