Exemple #1
0
def main():
    vine = vinepy.API(username='******', password='******')
    # user = vine.signup(username='******', email='*****@*****.**', password='******')
    tag_timeline = vine.get_tag_timeline(tag_name='LNV')

    for post in tag_timeline:
        print post.shareUrl
Exemple #2
0
 def test_custom_device_token(self):
     with my_vcr.use_cassette('login-custom-device-token.yml') as cassette:
         custom_device_token = 'a3352a79c3e29283a03a2e6eb89587648f5b2a291c709708816ec768d058ea45'
         api = vinepy.API(username=self.vine_email,
                          password=self.vine_password,
                          device_token=custom_device_token)
         self.assertIn(custom_device_token, cassette.requests[0].body)
         self.assertEqual(api.username, self.vine_email)
Exemple #3
0
def main():
    vine = vinepy.API(username='******', password='******')
    # You can create a vine account
    # user = vine.signup(username='******', email='*****@*****.**', password='******')
    tag_timeline = vine.get_tag_timeline(tag_name='LNV')

    for post in tag_timeline:
        print(post.shareUrl)
Exemple #4
0
    def test_user_notifications(self):
        api = vinepy.API(username=self.vine_email, password=self.vine_password)
        user_id = 948731399408640000

        with my_vcr.use_cassette('unfollow_notifications.yml') as cassette:
            api.unfollow_notifications(user_id=user_id)
            user = api.get_user(user_id=user_id)
            self.assertTrue(user.is_following())
            self.assertFalse(user.is_notifying())

        with my_vcr.use_cassette('follow_notifications.yml') as cassette:
            api.follow_notifications(user_id=user_id)
            user = api.get_user(user_id=user_id)
            self.assertTrue(user.is_following())
            self.assertTrue(user.is_notifying())
Exemple #5
0
 def test_signup(self):
     api = vinepy.API().signup(username=self.vine_name,
                               email=self.vine_email,
                               password=self.vine_password)
     self.assertEqual(api.username, self.vine_name)
Exemple #6
0
 def setUp(cls):
     cls.vine_name = 'Bob Testy'
     cls.vine_email = '*****@*****.**'
     cls.vine_password = '******'
     cls.api = vinepy.API(username=cls.vine_email,
                          password=cls.vine_password)