<jupyter_start><jupyter_text>Now You Code 1: NBA Stat LeaderboardsGet the current leader of each stat provided by http://www.espn.com/nba/statistics and print the stat title and the list of player in order.ex:```Offensive Leaders:Name                              ppg1. <NAME>, OKC	     31.42. <NAME>, NO	          28.63. <NAME>, SAC	      28.54. <NAME>, HOU	          27.95. <NAME>, BOS	         27.7```Suggested approach:- Use requests to download the page html- Use BeautifulSoup to extract the data- Create a function to process each stat box.- Loop through each stat box and process the stat- Use string format functions to format the output<jupyter_code>import requests
from bs4 import BeautifulSoup

html = requests.get('http://www.espn.com/nba/statistics').text
soup = BeautifulSoup(html, 'lxml')
boxes = soup.select('#my-players-table .span-2 .mod-container')
for box in boxes:
    for row in box.select('table tr'):
        items = row.find_all('td')
        if len(items) > 2:
            items = items[1:]
        if len(items) > 1:
            print('{:50}{}'.format(items[0].get_text(), items[1].get_text()))
    print('-' * 55)<jupyter_output>POINTS                                            PPG
1. <NAME>, OKC                         37.4
2. <NAME>, CLE                              34.2
3. <NAME>, SA                              30.3
4. <NAME>, WSH                                 29.6
5. <NAME>, HOU                              28.4
-------------------------------------------------------
ASSISTS                                           APG
1. <NAME>, WSH                                 11.4
2. <NAME>, OKC                         10.8
3. <NAME>, LAC                                9.9
4. <NAME>, HOU                              8.4
5. <NAME>, ATL                           7.7
-------------------------------------------------------
FIELD GOAL %                                      FG%
1. <NAME>, HOU                              .791
2. <NAME>, GS                               .760
3. <NAME>, LAC                            .705
4. <NAME>[...]
{'fraction_non_alphanumeric': 0.15878378378378377, 'fraction_numerical': 0.03957528957528957, 'mean_word_length': 1.0834170854271357, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 1}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '567345', 'license': 'MIT', 'n_tokens_mistral': 594, 'n_tokens_neox': 544, 'n_words': 181, 'path': 'content/lessons/14/Now-You-Code/NYC1-NBA-Stat-Leaderboards.ipynb', 'repo_name': 'yajiao-su/istpytonproject', 'size': '2204'}