2015-09-02 65 views
0

早上好,我需要自動化我們必須執行的日常控制。在每個URL中,我們都有關於標籤中服務器狀態的信息。用戶名/密碼登錄到多個URL並將信息導出到excel

我試過這樣做與Excel數據>從Web,但是當我與我的合作伙伴共享文件他們沒有登錄到網址,所以自動化它不能正常工作。我們需要打開一個例如excel,刷新並獲取有關服務器狀態的信息。我嘗試了在這個網絡中共享的多個例子,但我沒有成功。

有17個網址,其中一些具有相同的用戶名和密碼。

任何人都可以幫助我嗎?

回答

0

如果使用HTTP身份驗證,則可以嘗試在URI方案和域名之間添加username:[email protected]

例如:

https://username:[email protected]/ 

http://www.w3.org/Addressing/URL/url-spec.txt

Those schemes which refer to internet protocols mostly have a 
    common syntax for the rest of the object name. This starts with a 
    double slash "//" to indicate its presence, and continues until the 
    following slash "/". Within that section are 


     An optional user name, 
           if required (as it is with a few FTP 
          servers). The password, is present, follows 
          the user name, separated from it by a colon; 
          the user name and optional password are 
          followed by a commercial at sign "@". The 
          user of user name and passwords which are 
          public is discouraged. 

請注意,您需要% encode用戶名密碼&如果它們包含特殊字符。