FriendsOfPHP / Goutte

Goutte, a simple PHP Web Scraper
MIT License
9.26k stars 1.01k forks source link

You can't perform that action at this time on Github login example #319

Closed anuj9196 closed 2 years ago

anuj9196 commented 7 years ago

I tried the login example given in the documentation but it prints

You can't perform that action at this time

What could be the cause of error?

naokwn commented 6 years ago

I had the same problem.

mallikarjunece commented 6 years ago

I had the same problem

cy16f01 commented 6 years ago

Even i am having the same issues...I am unable to post any comments/replies or unable to open up any issues..?? Why does this happen..??

Any suggestions on how to solve this issue..??

arthurcvm commented 6 years ago

Hello guys, I think I solved it, look the example adjusted:

   use Goutte\Client;

    $client = new Client();

    $crawler = $client->request('GET', 'https://github.com/');
    $crawler = $client->click($crawler->selectLink('Sign in')->link());
    $token = $crawler->filter('input')->eq(1)->extract('value')[0];
    $form = $crawler->selectButton('Sign in')->form();
    $crawler = $client->submit($form, array('authenticity_token' => "$token", 'login' => 'YourUserNameHere', 'password' => 'YourPassHere'));
    $crawler->filter('.account-switcher-truncate-override')->each(function ($node) { //Get the username
        print $node->text()."\n";
    });
ghost commented 5 years ago

It seems that you have blocked.

aaeak commented 3 years ago

At the risk of stating something obvious and not relevant to your issue... I just got this message when attempting to star a project after just creating a new account. Confirming my email address fixed it (and maybe going through the account initialization setup it redirects to, although probably not required).

bradyreino commented 3 years ago

@beesfoo click the link mamedev/mame#7941 and write "Unban "bradyreino".".

bradyreino commented 3 years ago

@beesfoo click the link mamedev/mame#7941 and write "Unban "bradyreino"." to comment to MAMEdevs again without banning.

bradyreino commented 3 years ago

@beesfoo I can comment to MAMEdevs without banning, to unban me on the MAMEdev page, click the link mamedev/mame#7941 and write "Unban "bradyreino".".

stof commented 3 years ago

@fabpot I suggest closing this issue, as it is not about an issue in Goutte (and the recent discussion happening here seems even less related to Goutte)

aaeak commented 3 years ago

@fabpot I suggest closing this issue, as it is not about an issue in Goutte (and the recent discussion happening here seems even less related to Goutte)

I second that.

PJM-NCC-70511 commented 2 years ago

I am getting the same issue. The repository owner should not have a reason to block me because it was the first time I submitted something about an issue with the software.