【发布时间】:2020-10-23 02:23:47
【问题描述】:
我正在从事一个从网站上抓取表格的项目。我无法提供完整的代码,因为这是一个登录的公司特定站点。 基本上,我正在尝试从存在不超过 100 条记录但一次只显示 12 条记录的 webtable 中获取记录。我尝试使用滚动条获取记录,但它失败了。请帮助我获取所有记录在excel表中。提前致谢。 我在下面添加我的代码。
from lxml import etree
import urllib.request
import requests
import pandas as pd
from bs4 import BeautifulSoup
url = "https//"
pd.read_html(requests.get(url,verify=False))
df = pd.read_html(url)
我遇到以下错误:
TypeError: 无法从“响应”解析
【问题讨论】:
标签: python pandas dataframe web-scraping beautifulsoup