From: Josh Roesslein Date: Thu, 1 Oct 2009 20:46:47 +0000 (-0500) Subject: Fix Status.source_url parsing. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b6329571e1366a14b65e2978d9140f85c3f2e788;p=tweepy.git Fix Status.source_url parsing. --- diff --git a/tweepy/parsers.py b/tweepy/parsers.py index daae037..152de4c 100644 --- a/tweepy/parsers.py +++ b/tweepy/parsers.py @@ -47,7 +47,9 @@ def _parse_html_value(html): def _parse_a_href(atag): - return atag[atag.find('"')+1:atag.find('>')-1] + start = atag.find('"') + 1 + end = atag.find('"', start) + return atag[start:end] def _parse_user(obj, api):