{"action":"created","issue":{"url":"https://api.github.com/repos/Anorov/cloudflare-scrape/issues/174","repository_url":"https://api.github.com/repos/Anorov/cloudflare-scrape","labels_url":"https://api.github.com/repos/Anorov/cloudflare-scrape/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/Anorov/cloudflare-scrape/issues/174/comments","events_url":"https://api.github.com/repos/Anorov/cloudflare-scrape/issues/174/events","html_url":"https://github.com/Anorov/cloudflare-scrape/issues/174","id":373555746,"node_id":"MDU6SXNzdWUzNzM1NTU3NDY=","number":174,"title":"proxy is not working","user":{"login":"quancore","id":15036825,"node_id":"MDQ6VXNlcjE1MDM2ODI1","avatar_url":"https://avatars3.githubusercontent.com/u/15036825?v=4","gravatar_id":"","url":"https://api.github.com/users/quancore","html_url":"https://github.com/quancore","followers_url":"https://api.github.com/users/quancore/followers","following_url":"https://api.github.com/users/quancore/following{/other_user}","gists_url":"https://api.github.com/users/quancore/gists{/gist_id}","starred_url":"https://api.github.com/users/quancore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quancore/subscriptions","organizations_url":"https://api.github.com/users/quancore/orgs","repos_url":"https://api.github.com/users/quancore/repos","events_url":"https://api.github.com/users/quancore/events{/privacy}","received_events_url":"https://api.github.com/users/quancore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-10-24T15:56:14Z","updated_at":"2018-11-27T23:33:09Z","closed_at":null,"author_association":"NONE","body":"**code:**\r\n```\r\n# get cookie string for bypassing cloudflare protection\r\ndef get_cookie_token(url, user_agent, proxy=None):\r\n    if proxy:\r\n        proxy = 'http://'+ proxy\r\n        cookie_arg, user_agent = cfscrape.get_tokens(url, user_agent=user_agent, proxies={'https': proxy, 'http': proxy})\r\n    else:\r\n        cookie_arg, user_agent = cfscrape.get_tokens(url, user_agent=user_agent)\r\n\r\n    return cookie_arg\r\n\r\n```\r\n```\r\nproxy = ProxyManager.getInstance(user_agent_str, session).get_proxy()\r\ntoken = get_cookie_token(url, user_agent_str, proxy=proxy)\r\nr = session.get(url, stream=True, headers=headers, timeout=constants.timeout,\r\ncookies={'__cfduid': token['__cfduid'], 'cf_clearance': token['cf_clearance']}, proxies={'https': proxy})\r\n```\r\n\r\n> proxy format ---> 188.112.53.89:50360  I already check that proxy is working from several website and checkers.\r\n\r\n**error:**\r\n![image](https://user-images.githubusercontent.com/15036825/47444123-10c27800-d7b6-11e8-9107-253c4c4cfac6.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Anorov/cloudflare-scrape/issues/comments/442259299","html_url":"https://github.com/Anorov/cloudflare-scrape/issues/174#issuecomment-442259299","issue_url":"https://api.github.com/repos/Anorov/cloudflare-scrape/issues/174","id":442259299,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjI1OTI5OQ==","user":{"login":"Mattwmaster58","id":26337069,"node_id":"MDQ6VXNlcjI2MzM3MDY5","avatar_url":"https://avatars3.githubusercontent.com/u/26337069?v=4","gravatar_id":"","url":"https://api.github.com/users/Mattwmaster58","html_url":"https://github.com/Mattwmaster58","followers_url":"https://api.github.com/users/Mattwmaster58/followers","following_url":"https://api.github.com/users/Mattwmaster58/following{/other_user}","gists_url":"https://api.github.com/users/Mattwmaster58/gists{/gist_id}","starred_url":"https://api.github.com/users/Mattwmaster58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mattwmaster58/subscriptions","organizations_url":"https://api.github.com/users/Mattwmaster58/orgs","repos_url":"https://api.github.com/users/Mattwmaster58/repos","events_url":"https://api.github.com/users/Mattwmaster58/events{/privacy}","received_events_url":"https://api.github.com/users/Mattwmaster58/received_events","type":"User","site_admin":false},"created_at":"2018-11-27T23:33:09Z","updated_at":"2018-11-27T23:33:09Z","author_association":"NONE","body":"Can you connect with a regular proxy with requests? I'm doubtful cfscrape is the issue."}}
{"actor":{"display_login":"Mattwmaster58"}}