Google+ アカウントに新しいリンクを投稿する単純なアプリケーションを C# で作成しましたが、実際のブラウザ自体を起動しています。私は、C#、Python、PHP 言語、またはその他の言語で問題ありません。
多くのインタラクションが JS に基づいているため、C# WebClient クラスを使用できないため、何らかの方法でブラウザーをエミュレートする必要があります。
これはセレン用の私の C# コードなので、私が達成しようとしていることを理解できます。
static void Main(string[] args)
{
IWebDriver driver;
FirefoxProfile firefoxProfile = new FirefoxProfile();
driver = new FirefoxDriver();
driver.Navigate().GoToUrl("https://accounts.google.com/ServiceLoginAuth");
driver.FindElement(By.Name("Email")).SendKeys("MYEMAIL");
driver.FindElement(By.Name("Passwd")).SendKeys("MYPASSWORD");
driver.FindElement(By.Name("signIn")).Click();
driver.Navigate().GoToUrl("https://plusone.google.com/_/+1/confirm?hl=en&url=http://site.com/");
System.Threading.Thread.Sleep(10000);
driver.FindElement(By.ClassName("e-U-a-fa")).Click();
Console.WriteLine("Done!");
Console.ReadLine();
}