supershitcodehere / ultimatetwitter

selenium based twitter mass-posting tool & account lock bypass process fully supported.
Apache License 2.0
5 stars 0 forks source link

Can't login anymore. #7

Closed sebonlien closed 3 years ago

sebonlien commented 3 years ago

Can't login anymore.

When I try to login to mobile.twitter.com it gives this error:

GET https://mobile.twitter.com/resulted in a400 Bad Request` response:

39ff commented 3 years ago

mobile.twitter currently unavailable. use selenium.

<?php
require './vendor/autoload.php';

$to = new \koulab\UltimateTwitter\Selenium\TwitterWeb\Pages\LoginPage();
try {
    $tl = $to->login('yourScreenName','password');
    $tl->tweet('test '.time());
    $tl->getDriver()->takeScreenshot('done.png');

    $tl->getDriver()->close();
}catch (\Facebook\WebDriver\Exception\WebDriverException $e){
    if($to->getDriver() != null){
        $to->getDriver()->close();
    }
}