Skip to content

Commit

Permalink
Updated to remove API keys, added to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
theoliviawales committed Oct 18, 2016
1 parent fd35d17 commit 2579a86
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Imgur_Uploader.py
Expand Up @@ -4,8 +4,8 @@

class Imgur_Uploader(object):
def __init__(self):
client_id = 'b0bf6da0d2a7e8b'
client_secret = '9a5fd6c74839a7a863e52868729b7ae4d8eb5223'
client_id = 'YOUR-CLIENT-ID'
client_secret = 'YOUR-CLIENT-SECRET'

self.client = ImgurClient(client_id, client_secret)

Expand Down
22 changes: 19 additions & 3 deletions README.md
@@ -1,6 +1,22 @@
# Almost Unlimited Storage

Video files are uploaded to YouTube through the YouTube API. YouTube offers
almost unlimited storage (625 videos per day).
Video files are uploaded to YouTube through the YouTube API, and images through Imgur's API. YouTube offers
almost unlimited storage (625 videos per day). Imgur boasts a daily cap of 1,250 images.

1. sudo pip install google-api-python-client
Install our endless list of dependencies:

```
sudo pip install -r ./requirements.txt
brew install ffmpeg
```

Run the program:

```
python main.py
```

Generate your own API keys and replace them in the client_secret .json files, as well
as the Imgur_Uploader.py file

Enjoy
4 changes: 2 additions & 2 deletions client_secret_google_sheets.json
@@ -1,12 +1,12 @@
{
"installed":
{
"client_id":"536424235518-pk7o9t4shk0ran8ag1i1cv9tbfsjt9o0.apps.googleusercontent.com",
"client_id":"YOUR-CLIENT-ID",
"project_id":"rapid-snowfall-146605",
"auth_uri":"https://accounts.google.com/o/oauth2/auth",
"token_uri":"https://accounts.google.com/o/oauth2/token",
"auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs",
"client_secret":"HVQug8Zzjr3J6khb5yVXSghO",
"client_secret":"YOUR-CLIENT-SECRET",
"redirect_uris":["urn:ietf:wg:oauth:2.0:oob",
"http://localhost"]
}
Expand Down
4 changes: 2 additions & 2 deletions client_secrets_youtube.json
@@ -1,7 +1,7 @@
{
"web": {
"client_id": "427052631542-lnfovssu8if5hkov7pp00tce1a8oump8.apps.googleusercontent.com",
"client_secret": "J6SHgfTNvC4vUT-Tdw4Qf-KE",
"client_id": "YOUR-CLIENT-ID",
"client_secret": "YOUR-CLIENT-SECRET",
"redirect_uris": [],
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://accounts.google.com/o/oauth2/token"
Expand Down

0 comments on commit 2579a86

Please sign in to comment.