如何使用python从jupyter笔记本中的文件夹中读取Chrome html文件

时间:2020-02-28 00:19:39

标签: python html url jupyter

我在另一个链接中找到了它,但是没有用

fname = 'US7931083B2' (I tried the full path as well )

html_file = open(fname, 'r')
source_code = html_file.read() 
source_code

我遇到错误

FileNotFoundError
追溯(最近一次通话) 在 6 fname ='US7931083B2' 7 ----> 8 html_file = open(fname,'r') 9源代码= html_file.read() 10个源代码

FileNotFoundError:[错误2]没有此类文件或目录:“ US7931083B2”

0 个答案:

没有答案