从网络上抓取 table 并在 gui 中显示
Scrape table from web and display it in gui
我想从网站上抓取 table,然后在使用 python 创建的图形用户界面中显示抓取的 table。 table(和网站)在 html。你会怎么做?如果可能的话,我很乐意在我的 gui 中以完全相同的方式显示 table 格式。 "Hypothetical it would be enough for me to take a screenshot of the table and display this picture afterwards in the gui"
Ps:我想使用 scrapy,但我想在那种情况下我必须稍后在我的 gui 中再次从头开始构建 table?
感谢您的想法!
如果您只需要抓取单个页面而不需要抓取,那么您并不需要 scrapy
。至于工具包 BeautifulSoup + Requests 是一个受欢迎的选择。
至于 table 内容 - 您很可能会存储在列表列表中(可能是某种结构 - 这取决于您),而不是在您的 GUI 应用程序中填充 table。
我想从网站上抓取 table,然后在使用 python 创建的图形用户界面中显示抓取的 table。 table(和网站)在 html。你会怎么做?如果可能的话,我很乐意在我的 gui 中以完全相同的方式显示 table 格式。 "Hypothetical it would be enough for me to take a screenshot of the table and display this picture afterwards in the gui"
Ps:我想使用 scrapy,但我想在那种情况下我必须稍后在我的 gui 中再次从头开始构建 table?
感谢您的想法!
如果您只需要抓取单个页面而不需要抓取,那么您并不需要 scrapy
。至于工具包 BeautifulSoup + Requests 是一个受欢迎的选择。
至于 table 内容 - 您很可能会存储在列表列表中(可能是某种结构 - 这取决于您),而不是在您的 GUI 应用程序中填充 table。