解析された URL を処理した後、このようなものを変数に格納しまし''.join(soup.findAll(text=True))
た。指定された引数に従って、スコアと一緒に学校を取得し、誰と遊んでいるかを取得する必要がありますtest.py "norfolk st."
。「Norfolk St. 0-38 Rutgers' ...re.search()、string.find() などのいくつかの関数を使用して、期待される結果を取得できない文字を解析しようとしましたか? 助けが必要
Norfolk St.
0 - 38
Rutgers
Final
South Florida
6 - 21
Michigan St.
Final
Chowan
7 - 47
Charlotte
Final
SE Louisiana
17 - 38
(24) TCU
Final
W. Kentucky
20 - 52
Tennessee
Final
S. Carolina St.
13 - 52
(4) Clemson
Final
Middle Tenn. St.
20 - 40
North Carolina
Final
Central Conn. St.
44 - 51
Lehigh
Final OT
Army
14 - 40
Ball St.
Final
問題は、この URL からサッカー ボックスのスコアを取得する必要があることですhttp://sports.yahoo.com/college-football/scoreboard/?conf=all
。ユーザーがコマンド ライン引数で学校名を指定するたびに、この URI に移動する必要があり、ハイパー リンクがある場合は学校名を確認し、リダイレクトして取得する必要があります。ボックススコアはこのようなものです
1 2 3 4 Total
FAU 3 3 0 7 13
ECU 7 14 10 0 31
ゲームが進行中の場合、取得したスコアは指定された秒間スリープしてから最新のスコアを取得する必要があります。私はPythonが初めてなので、助けが必要です。