javascript
  • r
  • 2017-08-02 61 views 0 likes 
    0

    我想在R中的webshot()中用casperJS登錄,但是我的代碼不起作用。我在下面做錯了什麼?不能用casperJS在webshot()中登錄R

    library(webshot) 
    webshot('https://suite.searchmetrics.com/en/auth/login', zoom = 1.3, 
         eval = " 
         this.wait(5000); 
         var url = 'https://suite.searchmetrics.com/en/auth/login'; 
         casper.start(url, function() { 
         console.log('page loaded'); 
         this.fill('form#loginForm', { 
          mail: 'my_email', 
          password: 'my_password' 
         }, true); 
         });") 
    

    回答

    0

    這實際上是webshot()包中的一個問題。 'eval'參數沒有被執行。我在軟件包回購上創建了一個問題,現在應該修復它。

    相關問題