Exemple #1
0
    def __init__(self):
        self.url = {
            'cn': 'https://api.nike.com/snkrs/content/v1/?&country=CN&language=zh-Hans&offset=0&orderBy=published',
            'de': 'https://api.nike.com/snkrs/content/v1/?country=DE&language=de&offset=0&orderBy=published',
            'us': 'https://api.nike.com/snkrs/content/v1/?country=US&language=en&offset=0&orderBy=published',
            'jp': 'https://api.nike.com/snkrs/content/v1/?country=JP&language=ja&offset=0&orderBy=published'
        }

        self.entry = 'https://api.nike.com/launch/entries/v2'
        useragent = random.choice(self.readyaml()['User_Agents'])
        # auth = self.readyaml()['auth']
        self.headers = {
            'User_Agents': useragent
            # 'Authorization': auth
        }
        self.db = db()
        self.country = ['cn', 'us', 'jp']
 def __init__(self):
     self.checkurl = 'http://httpbin.org/get'
     self.db = db()
Exemple #3
0
 def __init__(self):
     self.db = db()