{"action":"created","issue":{"url":"https://api.github.com/repos/GeneralMills/pytrends/issues/224","repository_url":"https://api.github.com/repos/GeneralMills/pytrends","labels_url":"https://api.github.com/repos/GeneralMills/pytrends/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/GeneralMills/pytrends/issues/224/comments","events_url":"https://api.github.com/repos/GeneralMills/pytrends/issues/224/events","html_url":"https://github.com/GeneralMills/pytrends/issues/224","id":299958258,"number":224,"title":"Google returns a response with code 400 when a key word is > 100 characters.","user":{"login":"jcc10","id":1398636,"avatar_url":"https://avatars2.githubusercontent.com/u/1398636?v=4","gravatar_id":"","url":"https://api.github.com/users/jcc10","html_url":"https://github.com/jcc10","followers_url":"https://api.github.com/users/jcc10/followers","following_url":"https://api.github.com/users/jcc10/following{/other_user}","gists_url":"https://api.github.com/users/jcc10/gists{/gist_id}","starred_url":"https://api.github.com/users/jcc10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcc10/subscriptions","organizations_url":"https://api.github.com/users/jcc10/orgs","repos_url":"https://api.github.com/users/jcc10/repos","events_url":"https://api.github.com/users/jcc10/events{/privacy}","received_events_url":"https://api.github.com/users/jcc10/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-24T17:42:38Z","updated_at":"2018-02-26T19:32:09Z","closed_at":null,"author_association":"NONE","body":"EDIT: Kind of my fault however it would be good to document it this, The max length of a single key word is 100 characters, however recommended key words may give you a key word that is longer.\r\n\r\nSo, it looks like google changed their system again.\r\n\r\npytrends.exceptions.ResponseError: The request failed: Google returned a response with code 400.\r\n\r\nFull traceback:\r\n\r\nself.pt is a pytrends.request TrendReq object.\r\n\r\n```\r\n  File \"E:\\Enviroments\\TensorFlow\\Project Foresight\\BootstrapCode\\trendGetter.py\", line 41, in buildPL\r\n    self.pt.build_payload(kw_list)\r\n  File \"C:\\Python35\\lib\\site-packages\\pytrends\\request.py\", line 108, in build_payload\r\n    self._tokens()\r\n  File \"C:\\Python35\\lib\\site-packages\\pytrends\\request.py\", line 119, in _tokens\r\n    trim_chars=4,\r\n  File \"C:\\Python35\\lib\\site-packages\\pytrends\\request.py\", line 88, in _get_data\r\n    'response with code {0}.'.format(response.status_code), response=response)\r\npytrends.exceptions.ResponseError: The request failed: Google returned a response with code 400.\r\n```\r\nI have the most up-to-date PIP package of PyTrends. (pytrends (4.3.0)) Additionally this was working for the past 4 days, I have not altered the program."},"comment":{"url":"https://api.github.com/repos/GeneralMills/pytrends/issues/comments/368621391","html_url":"https://github.com/GeneralMills/pytrends/issues/224#issuecomment-368621391","issue_url":"https://api.github.com/repos/GeneralMills/pytrends/issues/224","id":368621391,"user":{"login":"jcc10","id":1398636,"avatar_url":"https://avatars2.githubusercontent.com/u/1398636?v=4","gravatar_id":"","url":"https://api.github.com/users/jcc10","html_url":"https://github.com/jcc10","followers_url":"https://api.github.com/users/jcc10/followers","following_url":"https://api.github.com/users/jcc10/following{/other_user}","gists_url":"https://api.github.com/users/jcc10/gists{/gist_id}","starred_url":"https://api.github.com/users/jcc10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcc10/subscriptions","organizations_url":"https://api.github.com/users/jcc10/orgs","repos_url":"https://api.github.com/users/jcc10/repos","events_url":"https://api.github.com/users/jcc10/events{/privacy}","received_events_url":"https://api.github.com/users/jcc10/received_events","type":"User","site_admin":false},"created_at":"2018-02-26T19:32:09Z","updated_at":"2018-02-26T19:32:09Z","author_association":"NONE","body":"Ok, so I figured out what it was and it would be good to document it this, The max length of a single key word is 100 characters, however recommended key words may give you a key word that is longer.\r\n\r\nIt may also be good to preform a extra sanity check to see if the kw is too long and return a error that is helpful."}}
{"actor":{"display_login":"jcc10"}}