Coder Social home page Coder Social logo

google-trends's People

Contributors

jonasva avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

google-trends's Issues

Composer

Thanks. I can't seem to run composer on this repo with the guide you have given.

composer update janasva / google-trends

I updated composer.json file as adviced.

{
    "require": {
        "jonasva/google-trends": "dev-master"
    }
}

I'm hoping that you would add supoort for Google Topcharts country based :)

Fatal error: Uncaught exception 'GuzzleHttp\Exception\ClientException'

Hi, @jonasva, thank's for GT API.

When I try to execute the code

require ('vendor/autoload.php');

use Jonasva\GoogleTrends\GoogleSession;
use Jonasva\GoogleTrends\GoogleTrendsResponse;
use GuzzleHttp\Exception\BadResponseException;

$config = [
    'email' =>  '[email protected]',
    'password' =>  'xxxx',
    'recovery-email'  =>  'xxxx'
];

$session = (new GoogleSession($config))->authenticate();

I'm getting the error

Fatal error: Uncaught exception 'GuzzleHttp\Exception\ClientException' with message 'Client error response [url] https://accounts.google.com/CheckCookie?chtml=LoginDoneHtml [status code] 400 [reason phrase] Bad Request' in /home/ubuntu/workspace/dba/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 89 GuzzleHttp\Exception\ClientException: Client error response [url] https://accounts.google.com/CheckCookie?chtml=LoginDoneHtml [status code] 400 [reason phrase] Bad Request in /home/ubuntu/workspace/dba/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 89 Call Stack: 0.0023 236712 1. {main}() /home/ubuntu/workspace/dba/dbaQueryToGT.php:0 0.0093 410440 2. Jonasva\GoogleTrends\GoogleSession->authenticate() /home/ubuntu/workspace/dba/dbaQueryToGT.php:17 0.7901 997848 3. GuzzleHttp\Client->get() /home/ubuntu/workspace/dba/vendor/jonasva/google-trends/src/Jonasva/GoogleTrends/GoogleSession.php:270 0.7904 1009608 4. GuzzleHttp\Client->send() /home/ubuntu/workspace/dba/vendor/guzzlehttp/guzzle/src/Client.php:204

Also, Google notify me about the ban

If the error with Guzzle arose from the ban, is there some way to fix it?

Thank's in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.