使用Python在Web站点上Web爬行Excel文件

时间:2019-05-14 16:45:07

标签: python sharepoint web-crawler

我的第一个问题在这里! 我正在尝试使用python对SharePoint网站上的excel文件进​​行网络爬网。我相信我已经达到了该文件的极限,但是我如何从这一点开始将其作为excel文件读取并遍历各行。

预先感谢您的帮助!

当我看到“'SharePointSite'对象不可迭代”的错误消息时,请参见下面的代码

from sharepoint import SharePointSite, basic_auth_opener
import openpyxl
from openpyxl import load_workbook
import urllib

server_url = 'https://sharepoint.com/'
Opener = basic_auth_opener(server_url, "ursername", "password")

site_url = "url_for_the_Excel"

site = SharePointSite(site_url,Opener) #I believe the codes work up to this point 

for rows in site:   #this is where I got stuck 
    print(row[0])

0 个答案:

没有答案