使用VBA或Python(?)login网站,提取一个文件,然后用excel中的macros自动格式化它

我希望能够访问在线平台上已经保存的模板(通过我的ID明显),并通过Python或VBA导出, 我应该使用哪一个?

用VBA,我在网上发现了这样的东西:

Sub test() ' open IE, navigate to the desired page and loop until fully loaded Set ie = CreateObject("InternetExplorer.Application") my_url = "mywebsite" With ie .Visible = True .Navigate my_url .Top = 50 .Left = 530 .Height = 400 .Width = 400 Do Until Not ie.Busy And ie.readyState = 4 DoEvents Loop End With ' Input the userid and password ie.Document.getElementById("uid").Value = "testID" ie.Document.getElementById("password").Value = "testPW" ' Click the "Search" button ie.Document.getElementById("enter").Click Do Until Not ie.Busy And ie.readyState = 4 DoEvents Loop End Sub 

我的第一个问题是,我必须在下拉菜单中select我的名称空间,我们将在这里调用namespacetest,强制要到authentication部分(相同的URL)它是Java。 所以这部分代码是一个开始。

然后我到达我的页面,我想访问一个文件夹,访问正确的模板 (没有唯一的URL), 并将其导出,因为我会手动通过在Orion的UI窗口上select正确的选项。

我会编辑这个post,以便在我收到第一个build议或指导后更清楚,因为它可能有点不清楚!