diff --git a/spicebot_command_devexcuse/__init__.py b/spicebot_command_devexcuse/__init__.py index b327645..b173ac1 100644 --- a/spicebot_command_devexcuse/__init__.py +++ b/spicebot_command_devexcuse/__init__.py @@ -20,7 +20,7 @@ def fetch_string(): content_url = 'http://developerexcuses.com' response = requests.get(content_url) tree = html.fromstring(response.content) - title_elem = tree.xpath('/html/body/div[1]/center/a')[0] + title_elem = tree.xpath('/html/body/div[1]/center/a') fetched_str = str(title_elem) return fetched_str # .wrapper > center:nth-child(1) > a:nth-child(1)