from bs4 import BeautifulSoup
import requests


def attempts_scraper(url):
    resp = requests.get(url)
    resp = resp.text
    soup = BeautifulSoup(resp)
    headers_tagged = soup.findAll('th')
    headers_untagged = [item.text for item in headers_tagged]
    headers = [item.lower().strip() for item in headers_untagged]
    contents_tagged = soup.findAll('td')
    contents_runon = [item.text for item in contents_tagged]

    def divide_chunks(l, n):
        for i in range(0, len(l), n):
            yield l[i:i + n]
    contents_unstripped = list(divide_chunks(contents_runon, 3))
    contents = [[element.strip() for element in item] for item in
        contents_unstripped]
    return contents

e56388e91532b549f6096fa19529a5341a91c651
<mask token>

<mask token>


def attempts_scraper(url):
    resp = requests.get(url)
    resp = resp.text
    soup = BeautifulSoup(resp)
    headers_tagged = soup.findAll('th')
    headers_untagged = [item.text for item in headers_tagged]
    headers = [item.lower().strip() for item in headers_untagged]
    contents_tagged = soup.findAll('td')
    contents_runon = [item.text for item in contents_tagged]

    def divide_chunks(l, n):
        for i in range(0, len(l), n):
            yield l[i:i + n]
    contents_unstripped = list(divide_chunks(contents_runon, 3))
    contents = [[element.strip() for element in item] for item in
        contents_unstripped]
    return contents

from bs4 import BeautifulSoup
import requests


def attempts_scraper(url):
    resp = requests.get(url)
    resp = resp.text
    soup = BeautifulSoup(resp)
    headers_tagged = soup.findAll('th')
    headers_untagged = [item.text for item in headers_tagged]
    headers = [item.lower().strip() for item in headers_untagged]
    contents_tagged = soup.findAll('td')
    contents_runon = [item.text for item in contents_tagged]

    def divide_chunks(l, n):
        for i in range(0, len(l), n):
            yield l[i:i + n]
    contents_unstripped = list(divide_chunks(contents_runon, 3))
    contents = [[element.strip() for element in item] for item in
        contents_unstripped]
    return contents
