pgn-reader 0.4.0

Fast non-allocating reader for chess games in PGN notation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
import requests

from bs4 import BeautifulSoup

print("Request ...")
doc = requests.get("https://www.lichess4545.com/team4545/season/10/rosters/")
print("Parsing ...")
soup = BeautifulSoup(doc.text, "html.parser")

print("Select ...")
names = sorted([link.text for link in soup.select("td.cell-player a")])
print(", ".join('"%s"' % name for name in names))