diff --git a/googlearcdl/Program.cs b/googlearcdl/Program.cs index d1be34c..ebaf6d0 100644 --- a/googlearcdl/Program.cs +++ b/googlearcdl/Program.cs @@ -16,6 +16,8 @@ using Google.Apis.Services; using Google.Apis.Util.Store; +using OpenQA.Selenium; + namespace googlearcdl { class Program @@ -67,9 +69,25 @@ var downloadURLs = Regex.Matches(mail.HtmlBody, "\"https://takeout.google.com/settings/takeout/download.*?\""); + IWebDriver webDriver; + webDriver = WebDriverFactory.CreateInstance(AppSettings.BrowserName.InternetExplorer); + //webDriver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(60 * 10); + int i = 0; foreach (var url in downloadURLs) { + webDriver.Url = url.ToString().Replace("\"", ""); + System.Threading.Thread.Sleep(5000); + + /* + webDriver.FindElement(By.XPath("//input[@type='email']")).SendKeys("mikahosi@gmail.com"); + webDriver.FindElement(By.XPath("//input[@type='email']")).SendKeys("\n"); + System.Threading.Thread.Sleep(1000); + + webDriver.FindElement(By.XPath("//input[@type='password']")).SendKeys("WxxFSnWy6DTh"); + webDriver.FindElement(By.XPath("//input[@type='password']")).SendKeys("\n"); + */ + //512 true true + + AnyCPU @@ -74,6 +76,7 @@ + @@ -81,14 +84,29 @@ + + ..\packages\Selenium.WebDriver.3.141.0\lib\net45\WebDriver.dll + + + + + + このプロジェクトは、このコンピューター上にない NuGet パッケージを参照しています。それらのパッケージをダウンロードするには、[NuGet パッケージの復元] を使用します。詳細については、http://go.microsoft.com/fwlink/?LinkID=322105 を参照してください。見つからないファイルは {0} です。 + + + + + + + \ No newline at end of file diff --git a/googlearcdl/packages.config b/googlearcdl/packages.config index 7139100..4539676 100644 --- a/googlearcdl/packages.config +++ b/googlearcdl/packages.config @@ -11,4 +11,8 @@ + + + + \ No newline at end of file