# Path: hypebot/proxies/proxy_lib.py
# class Proxy(with_metaclass(abc.ABCMeta)):
#   _STORAGE_SUBKEY = 'fetch_results'
#   def __init__(self, store=None):
#   def __repr__(self):
#   def _GetUrl(self, url, params, headers=None):
#   def FlushCache(self):
#   def RawFetch(self, key, action, validate_fn=None, force_lookup=False,
#                use_storage=False):
#   def FetchJson(self, url, params=None, headers=None, force_lookup=False,
#                 use_storage=False, fields_to_erase=None):
#   def _JsonAction(self,
#                   url,
#                   params,
#                   headers,
#                   fields_to_erase=None):
#   def _EraseField(self, data, keys):
#   def _ValidateJson(self, return_data):
#   def HTTPFetch(self,
#                 url,
#                 params=None,
#                 headers=None,
#                 action=None,
#                 validate_fn=None,
#                 force_lookup=False,
#                 use_storage=False):
#   def _LogError(self, url, params=None, error_code=None, exception=None):


from hypebot.proxies import proxy_lib
import requests
# Copyright 2018 The Hypebot Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Proxy that uses requests."""

# pylint: disable=broad-except

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals





# Path: hypebot/proxies/proxy_lib.py
# class Proxy(with_metaclass(abc.ABCMeta)):
#   _STORAGE_SUBKEY = 'fetch_results'
#   def __init__(self, store=None):
#   def __repr__(self):
#   def _GetUrl(self, url, params, headers=None):
#   def FlushCache(self):
#   def RawFetch(self, key, action, validate_fn=None, force_lookup=False,
#                use_storage=False):
#   def FetchJson(self, url, params=None, headers=None, force_lookup=False,
#                 use_storage=False, fields_to_erase=None):
#   def _JsonAction(self,
#                   url,
#                   params,
#                   headers,
#                   fields_to_erase=None):
#   def _EraseField(self, data, keys):
#   def _ValidateJson(self, return_data):
#   def HTTPFetch(self,
#                 url,
#                 params=None,
#                 headers=None,
#                 action=None,
#                 validate_fn=None,
#                 force_lookup=False,
#                 use_storage=False):
#   def _LogError(self, url, params=None, error_code=None, exception=None):


# Path: hypebot/proxies/requests_proxy.py
from hypebot.proxies import proxy_lib
import requests

# Copyright 2018 The Hypebot Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Proxy that uses requests."""

# pylint: disable=broad-except

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals





class RequestsProxy(proxy_lib.Proxy):