#!/usr/bin/env python from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) result = client.disposable_email_detection('gmail.com') def log(message): print(message) log(result)
#!/usr/bin/env python import os from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) result = client.animate_image('https://jpeg.org/images/jpeg-home.jpg') path = result.save(os.getcwd(), 'animated_image') print('Saved: {}'.format(path))
def __auth(self): access_token = self.token client = RiteTagApi(access_token) client.on_limit(80, self.limit_80_percentage_reached) return client
#!/usr/bin/env python from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) result = client.banned_instagram_hashtags( '#instaphotography #instabeauty #instagirls #girlsofinstagram' ' #instanature #instagirl #photography #beauty #girls #nature #girl' ' #sky #water #balls #lady #ladies #woman #women #photograph #photographs' ' #beauties #sunlight #sitting #waters #skies #sit #photographies') print('post without banned hashtags:') print(result.post) print('\nbanned hashtags:') for banned in result.banned_hashtags: print(banned)
#!/usr/bin/env python from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) ctas = client.list_of_cta() link = client.shorten_url('https://twitter.com', ctas[0].id) print('Original link: {}, Shorten link: {}'.format(link.original, link.url))
#!/usr/bin/env python from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) result = client.name_from_email_address('*****@*****.**') def log(message): print(message) log(result)
#!/usr/bin/env python from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) result = client.hashtag_stats(['jobs', 'hello']) for h in result: print(h)
#!/usr/bin/env python from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) result = client.free_mail_detection('gmail.com') def log(message): print(message) log(result)
#!/usr/bin/env python from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) result = client.emoji_suggestion( 'TIL the Austrian mathematician Kurt Godel had an obsessive fear of being poisoned,' ' and would only eat food prepared by his wife. When she had to be hospitalized' ' in 1977, he refused to eat at all and died weighing 65 pounds.') print(', '.join(result))
#!/usr/bin/env python import os from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) domains = ['google.com', 'masumaki.com'] for domain in domains: print('Domain: {}'.format(domain)) result = client.company_logo_2(domain, True) print('Is found: {}'.format(result.is_found)) if result.is_found: print('Is generated: {}'.format(result.is_generated)) print('Original URL: {}'.format(result.logo())) print('Original URL (permanent): {}'.format(result.square_logo(True))) print('Square URL: {}'.format(result.logo())) print('Square URL (permanent): {}'.format(result.square_logo(True))) print('Brand colors: {}'.format(', '.join(result.brand_colors))) print('')
#!/usr/bin/env python from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) # upload image result = client.hashtag_suggestion_for_image('./jpeg-home.jpg') for h in result: print(h) # provide link result = client.hashtag_suggestion_for_image('https://jpeg.org/images/jpeg-home.jpg') for h in result: print(h)
#!/usr/bin/env python from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) result = client.email_typo('*****@*****.**') def log(message): print(message) [log(r) for r in result]
#!/usr/bin/env python from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) result = client.hashtag_suggestion_for_text( 'When you give Alaskans a universal basic income, they still keep working.' ) def log(message): print(message) [log(hashtag) for hashtag in result]
#!/usr/bin/env python import os from ritetag import RiteTagApi, read_env_file, get_env, ImageBuilder, AnimationType, FontList read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) ib = ImageBuilder( 'If you love life, don\'t waste time, for time is what life is made up of', 'Bruce Lee') ib.animation(AnimationType.glint)\ .quote_font(FontList.Lora)\ .author_font(FontList.Lato_Black) response = client.text_to_image(ib) path = response.save(os.getcwd(), 'image_name') print('Saved: {}'.format(path))
#!/usr/bin/env python from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) result = client.history('job') def log(message): print(message) [log(hashtag) for hashtag in result]
#!/usr/bin/env python from ritetag import RiteTagApi, read_env_file, get_env, HashtagPosition read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) result = client.auto_hashtag('Is artificial intelligence the future of customer service?', 2, HashtagPosition.auto) print(result)
#!/usr/bin/env python from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) result = client.extract_article_for_url( 'https://ritekit.com/api-demo/extract-article') print(result)
#!/usr/bin/env python import os from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) result = client.company_logo('google.com') path = result.save(os.getcwd(), 'google') print('Saved: {}'.format(path))
#!/usr/bin/env python from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) result = client.brand_colors('producthunt.com') def log(message): print(message) [log(r) for r in result]
#!/usr/bin/env python from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) result = client.auto_emojify( 'Have you ever imagined how interstellar travel could work?') print(result)
#!/usr/bin/env python from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) result = client.company_name_to_domain('Google') def log(message): print(message) [log(r) for r in result]
#!/usr/bin/env python from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) result = client.extract_top_image_for_url('https://fedoramagazine.org/secure-ntp-with-nts/') print(result)
#!/usr/bin/env python from ritetag import RiteTagApi, read_env_file, get_env read_env_file('.env') access_token = get_env('ACCESS_TOKEN') client = RiteTagApi(access_token) result = client.trending_hashtags(True, True) def log(message): print(message) [log(hashtag) for hashtag in result]