示例#1
0
 def setUp(self, params={}):
     self.Api = vkNApi()
     self.params = {
         'user_id': user_id,
         'email': email,
         'password': password
     }
示例#2
0
    def testScenario(self):
        api = vkNApi()

        r,b,c = api.authenticate(email,password)

        api.download_photo_album(c, "album27053008_000")
        api.download_photo_variants(c, "photo27053008_291919354", "max")
        print "Exit"
示例#3
0
文件: check.py 项目: ixtel/vk-parser
    def test_ip_address(self):
        self.api = vkNApi()

        if network_defaults['use_tor'] == False:
            return True

        r,b,c = self.api.get("http://icanhazip.com/")

        self.assertEqual(r["status"], '200')
        print "[TOR_IP_ADDRESS]", b
示例#4
0
    def test_ip_address(self):
        self.api = vkNApi()

        if network_defaults['use_tor'] == False:
            return True

        r, b, c = self.api.get("http://icanhazip.com/")

        self.assertEqual(r["status"], '200')
        print "[TOR_IP_ADDRESS]", b
示例#5
0
文件: check.py 项目: ixtel/vk-parser
 def setUp(self, params={}):
     self.Api = vkNApi()
     self.params = {'user_id':user_id, 'email': email, 'password': password}
示例#6
0
文件: check.py 项目: ixtel/vk-parser
 def testAuth(self):
     api = vkNApi()
     r,b,c = api.authenticate(self.params['email'], self.params['password'])
     self.assertNotIn("Моментальная регистрация", b)
示例#7
0
文件: check.py 项目: ixtel/vk-parser
 def testGet(self):
     self.Api = vkNApi()
     r,b,c = self.Api.get("http://vk.com")
     self.assertEqual(r["status"], '200')
示例#8
0
 def testAuth(self):
     api = vkNApi()
     r, b, c = api.authenticate(self.params['email'],
                                self.params['password'])
     self.assertNotIn("Моментальная регистрация", b)
示例#9
0
 def testGet(self):
     self.Api = vkNApi()
     r, b, c = self.Api.get("http://vk.com")
     self.assertEqual(r["status"], '200')