我用Python和BeautifulSoup来抓取newegg网站,抓取产品价格,名称和运费。但是,当我运行该程序时,输出仅从网站发回第一个产品条目。有人能帮我纠正我做错了什么吗?# import beautifulsoup 4 and use urllib to import urlopenfrom urllib.request import urlopenas uReq
from bs4 import BeautifulSoup as <
我是一个绝对的新手领域的网页刮和现在,我想从一个网页上提取可见的文本。BeautifulSoup is not an HTTP client.probably use an HTTP client like requests to get the document behind the URL, and feed that document to BeautifulSoup' that document to BeautifulSoup.' %
profile-row-header">Company</div><div class="profile-information">Mad Dog Graphx</div></div>
我在HTML代码中使用BeautifulSoup来达到这一点。我现在要搜索代码,并提取2010年1月、阿拉斯加、所有者和Mad Dog Graph等数据。所有这些数据都有相同的类,但它们有不同的变量,如“成员自”、"AIGA章节“等。