From b6329571e1366a14b65e2978d9140f85c3f2e788 Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Thu, 1 Oct 2009 15:46:47 -0500 Subject: [PATCH] Fix Status.source_url parsing. --- tweepy/parsers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): -- 2.25.1