Metadata-Version: 2.1
Name: twitter-makeup
Version: 0.0.4
Summary: Make up your twitter profile, from 🐴 to 🦄 !
Home-page: https://github.com/nidup/twitter-makeup
Author: Nicolas Dupont
Author-email: duponn@gmail.com
License: MIT
Download-URL: https://pypi.org/project/twitter-makeup
Keywords: Twitter,Profile,API
Platform: UNKNOWN
Description-Content-Type: text/markdown
Requires-Dist: tweepy (>=3.8.0)

# Make up your Twitter Profile!

Small library to make up your twitter profile, from 🐴 to 🦄 !

## Install 📦

```
pip install twitter-makeup
```

## Configure 🛠️

Twitter MakeUp allows to programmatically change your profile on your behalf.

To configure it, you need to generate Twitter credentials.

[Follow the Twitter guide (OAuth 1.0a)](https://developer.twitter.com/en/docs/basics/authentication/overview).


## Use it! 🦄

```python
import tweepy
from twitter_makeup import MakeUp

# Configure Tweepy
consumer_key = 'YourKey'
consumer_secret = 'YourSecret'
access_token = 'YourAccessToken'
access_secret = 'YourAccessSecret'
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_secret)
api = tweepy.API(auth, wait_on_rate_limit=True, wait_on_rate_limit_notify=True, compression=True)

# Make up your profile 🦄

makeup = MakeUp(api)

# Change your banner 
banner_path = 'data/banner-night.jpg'
banner_path = 'data/banner-morning.jpg'
makeup.change_banner_picture(banner_path)
print('Banner picture has been changed using "'+ banner_path + '" 🦄')

# Change your profile picture
profile_path = 'data/profile-xmas.jpg'
profile_path = 'data/profile-regular.jpg'
makeup.change_profile_picture(profile_path)
print('Profile picture has been changed using "'+ profile_path + '" 🦄')

# Change your profile name
profile_name = 'Nicolas Dupont 💻'
profile_name = 'Nicolas Dupont ☕'
profile_name = 'Nicolas Dupont 📝'
makeup.change_profile_name(profile_name)
print('Profile name has been changed by "' + profile_name + '" 🦄')

# Change your profile location
profile_location = 'Boston'
profile_location = 'Nantes'
makeup.change_profile_location(profile_location)
print('Profile location has been changed by "' + profile_location + '" 🦄')

# Change your profile description
profile_description = "Co-founder and CPO at @akeneopim\
\n❤️ crafting products to create value for users and businesses\
\n💬 and 📝 about product, engineering, teamwork, learnings"
makeup.change_profile_description(profile_description)
print('Profile description has been changed by "' + profile_description + '" 🦄')
```

## License

[MIT](LICENSE)

## Third party

This library uses the excellent [Tweepy](https://www.tweepy.org/), providing a small wrapper around a small subset of Tweepy capabilities.


