私は、WebスクレイピングスキルのプロジェクトをまとめるためにPythonを学んでいます。フットボールの統計情報のテーブルをダウンロードするのに問題があります。私は、次のエラーを取得しています:ここでFeatureNotFound:あなたがリクエストした機能を備えたツリービルダーを見つけることができませんでした - パンダでWebスクラップする
FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
は私の完全なコードです。どんな助けもありがとう。
import pandas as pd
import requests
from bs4 import BeautifulSoup
res = requests.get("http://www.fftoday.com/stats/playerstats.php?Season=2002&GameWeek=1&PosID=10&LeagueID=26955")
soup = BeautifulSoup(res.content,'lxml')
table = soup.find_all('table')[1]
Traceback (most recent call last):
File "<ipython-input-20-e6d65d59d7e8>", line 6, in <module>
soup = BeautifulSoup(res.content,'lxml')
File "C:\Users\Unciv\Anaconda3\envs\ML27\lib\site-packages\bs4\__init__.py", line 165, in __init__
% ",".join(features))
FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
[lxml](http://lxml.de/installation.html)をインストールするとよいでしょう。 – ShreyasG