import urllib3
from bs4 import BeautifulSoup
import re


def soup_extract_links(url, linkclass):
    """Process URL using BeautifulSoup and find all elements of linkclass."""
    http = urllib3.PoolManager()
    r = http.request('GET', url)
    soup = BeautifulSoup(r.data, 'html.parser')
    return soup.find_all(class_=linkclass,
                         attrs={'href': re.compile("^http://")})