#!/usr/bin/python
# -*- coding: utf-8 -*-

import urllib2
import json


class SeasonvarWebOpener:

    __instance = None

    def __init__(self):
        return

    @staticmethod
    def __create_opener():
        web_opener = urllib2.build_opener()
        web_opener.addheaders.append(('Cookie', 'sva=lVe324PqsI24'))
        urllib2.install_opener(web_opener)
        return web_opener

    def __get_opener(self):
        if self.__instance is None:
            self.__instance = SeasonvarWebOpener.__create_opener()
        return self.__instance

    def get_json(self, url):
        response = self.get_html(url)
        return json.loads(response)

    def get_html(self, url):
        try:
            conn = self.__get_opener().open(url)
            html = conn.read()
            conn.close()
            return html
        except:
            return None

3bfbe3b15d5b1d056d4fe9921c248bdec99d0f63
<mask token>


class SeasonvarWebOpener:
    <mask token>

    def __init__(self):
        return

    @staticmethod
    def __create_opener():
        web_opener = urllib2.build_opener()
        web_opener.addheaders.append(('Cookie', 'sva=lVe324PqsI24'))
        urllib2.install_opener(web_opener)
        return web_opener

    def __get_opener(self):
        if self.__instance is None:
            self.__instance = SeasonvarWebOpener.__create_opener()
        return self.__instance

    def get_json(self, url):
        response = self.get_html(url)
        return json.loads(response)
    <mask token>

<mask token>


class SeasonvarWebOpener:
    <mask token>

    def __init__(self):
        return

    @staticmethod
    def __create_opener():
        web_opener = urllib2.build_opener()
        web_opener.addheaders.append(('Cookie', 'sva=lVe324PqsI24'))
        urllib2.install_opener(web_opener)
        return web_opener

    def __get_opener(self):
        if self.__instance is None:
            self.__instance = SeasonvarWebOpener.__create_opener()
        return self.__instance

    def get_json(self, url):
        response = self.get_html(url)
        return json.loads(response)

    def get_html(self, url):
        try:
            conn = self.__get_opener().open(url)
            html = conn.read()
            conn.close()
            return html
        except:
            return None

<mask token>


class SeasonvarWebOpener:
    __instance = None

    def __init__(self):
        return

    @staticmethod
    def __create_opener():
        web_opener = urllib2.build_opener()
        web_opener.addheaders.append(('Cookie', 'sva=lVe324PqsI24'))
        urllib2.install_opener(web_opener)
        return web_opener

    def __get_opener(self):
        if self.__instance is None:
            self.__instance = SeasonvarWebOpener.__create_opener()
        return self.__instance

    def get_json(self, url):
        response = self.get_html(url)
        return json.loads(response)

    def get_html(self, url):
        try:
            conn = self.__get_opener().open(url)
            html = conn.read()
            conn.close()
            return html
        except:
            return None

import urllib2
import json


class SeasonvarWebOpener:
    __instance = None

    def __init__(self):
        return

    @staticmethod
    def __create_opener():
        web_opener = urllib2.build_opener()
        web_opener.addheaders.append(('Cookie', 'sva=lVe324PqsI24'))
        urllib2.install_opener(web_opener)
        return web_opener

    def __get_opener(self):
        if self.__instance is None:
            self.__instance = SeasonvarWebOpener.__create_opener()
        return self.__instance

    def get_json(self, url):
        response = self.get_html(url)
        return json.loads(response)

    def get_html(self, url):
        try:
            conn = self.__get_opener().open(url)
            html = conn.read()
            conn.close()
            return html
        except:
            return None

#!/usr/bin/python
# -*- coding: utf-8 -*-

import urllib2
import json


class SeasonvarWebOpener:

    __instance = None

    def __init__(self):
        return

    @staticmethod
    def __create_opener():
        web_opener = urllib2.build_opener()
        web_opener.addheaders.append(('Cookie', 'sva=lVe324PqsI24'))
        urllib2.install_opener(web_opener)
        return web_opener

    def __get_opener(self):
        if self.__instance is None:
            self.__instance = SeasonvarWebOpener.__create_opener()
        return self.__instance

    def get_json(self, url):
        response = self.get_html(url)
        return json.loads(response)

    def get_html(self, url):
        try:
            conn = self.__get_opener().open(url)
            html = conn.read()
            conn.close()
            return html
        except:
            return None
