-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed some small errors in notify.py !
Made a readme.md Updated requirements.txt to have the latest version of Instagrapi !
- Loading branch information
Showing
4 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.env | ||
ig_settings.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
|
||
# Notify | ||
|
||
Want to spice up your Notes on Instagram by displaying what you're currently playing on Spotify ? Here is Notify at your service ! | ||
|
||
## Installation | ||
|
||
Install Notify from GitHub | ||
|
||
### Download from GitHub | ||
```bash | ||
git clone https://github.com/nil-malh/Notify.git | ||
cd Notify | ||
``` | ||
|
||
### Download dependencies and run the project | ||
|
||
```bash | ||
pip install -r requirements.txt && python notify.py | ||
``` | ||
|
||
## Environment Variables | ||
|
||
To run this project, you will need to add the following environment variables to your .env file or input them when running the project for the first time. | ||
|
||
`SPOTIPY_CLIENT_ID`: | ||
*The client_id from your Spotify application* | ||
|
||
`SPOTIPY_CLIENT_SECRET`: | ||
*The client_secret from your Spotify application* | ||
|
||
`SPOTIPY_REFRESH_TOKEN`: | ||
*The refresh_token for the Authentication to the Spotify API* | ||
|
||
`BOT_REFRESH_RATE`: | ||
*The intervals between two notes sent to the Instagram API* | ||
|
||
`IG_USERNAME` | ||
*Your Instagram username* | ||
`IG_PASSWORD` | ||
*Your Instagram password* | ||
|
||
|
||
|
||
## FAQ | ||
|
||
#### How can I generate a refresh_token ? | ||
|
||
You can use this [project]("https://github.com/limhenry/spotify-refresh-token-generator") made by [@limhenry]("https://github.com/limhenry") to generate your refresh_token please be sure to check the scope `user-read-currently-playing` in order to authorize Notify to ask Spotify what you are currently listening to. | ||
|
||
#### What value shoud I put in `BOT_REFRESH_RATE ?` | ||
|
||
The value in BOT_REFRESH_RATE should at least 120 seconds to avoid triggering Instagram. You can put lower value if you like the risk but I am not reponsible for your account being restricted ! | ||
|
||
## Used dependencies | ||
|
||
**Client:** | ||
* [Instagrapi]("https://github.com/adw0rd/instagrapi") (*Note implementation made by me !*) | ||
* [Spotipy]("https://github.com/spotipy-dev/spotipy") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
instagrapi==1.16.33 | ||
instagrapi==1.16.41 | ||
requests==2.28.1 | ||
spotipy==2.22.1 | ||
python-dotenv==0.14.0 |