#!/usr/bin/env python

import requests
from bs4 import BeautifulSoup

from constants import BASE_URL, INTERVAL_BETWEEN_REQUESTS

def get_soup(page=''):
    """
    Returns a bs4 object of the page requested
    """
    content = requests.get('%s%s' % (BASE_URL,page)).text
    return BeautifulSoup(content.encode('utf8'))

def get_article_soup(link):
    """
    Returns a bs4 object of the requested article
    """
    return get_soup(link)
@@ -160,34 +160,45 @@
 %0A    Returns a b
-s4
+eautiful soup
  object of the p
@@ -378,18 +378,29 @@
 urns a b
-s4
+eautiful soup
  object 
@@ -449,16 +449,17 @@
 n get_soup(link)
+%0A

update comments