Feb-11-2022, 07:59 PM
Make into list with text output then zip() it together.
Example.
Then have lot of power to finding eg statistic about players and games
Example NoteBook.
Example.
>>> players = [tag.text for tag in players] >>> assists = [tag.text for tag in assists] >>> zip(player, assists) <zip object at 0x000000001D9ED580> >>> record = dict(zip(player, assists)) >>> record {'Aaron Wan-Bissaka': '2', 'Alex Telles': '1', 'Amad Diallo': '', 'Andreas Pereira': '', 'Anthony Elanga': '0', 'Anthony Martial': '0', 'Brandon Williams': '29', 'Bruno Fernandes': '0', 'Cristiano Ronaldo': '1', 'Daniel James': '0', 'David de Gea': '5', 'Dean Henderson': '', 'Diogo Dalot': '2', 'Donny van de Beek': '', 'Edinson Cavani': '0', 'Eric Bailly': '0', 'Fred': '3', 'Harry Maguire': '0', 'Jadon Sancho': '0', 'Jesse Lingard': '0', 'Juan Mata': '', 'Luke Shaw': '2', 'Marcus Rashford': '7', 'Mason Greenwood': '0', 'Nemanja Matić': '1', 'Paul Pogba': '1', 'Phil Jones': '0', 'Player': '0', 'Raphaël Varane': '0', 'Scott McTominay': '3', 'Squad Total': '24', 'Tom Heaton': '', 'Victor Lindelöf': '1'} >>> record['Brandon Williams'] '29'Also look at Pandas it's great for reading table in from html.
Then have lot of power to finding eg statistic about players and games
Example NoteBook.