Getting real time anime info and updates sent directly to your smartphone
-
- Generating Access Token
- Running The Code
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
-
Get the code by cloning the repository
-
Open the folder Script and It'll look something like below
- Right click on script1.py file and select --> open with IDLE as shown below ( You will get this option if python is already installed in your pc )
-
Now select 'Run Module' from 'Run' option as shown in next step ( Make sure that you're connected to the internet before running the script )
-
After clicking that one few windows might open like browser, and terminal window as shown below: ( After few seconds the browser will automatically close and you can see your results )
You can use pyCharm to run the script as:
What things you need to run the program:
- selenium package
use pip to install the selenium package. Python 3.6 has pip available in the standard library. Using pip, you can install selenium by opening your powershell and typing the following:
pip install selenium
If you want custom notifications in your smartphone then can use any medium but as I've used pushbullet so I'm gonna show u how I did it
- Make a pushbullet account
- Make a channel on your pushbullet account
- generate your pushbullet ACCESS TOKEN as follows
- Copy the ACCESS TOKEN you generated and replace it with "YOUR_ACCESS_TOKEN" in the code in line
api_key = 'YOUR_ACCESS_TOKEN'
- Uncomment the lines marked in the following image ( remove '#' symbol from start )
- Run the module again as shown in step 5 of Getting Started section
You can add as many features you want to the program. For example I added a custom search feature to it the Custom Search Feature section.
You can also add feature like:
- Season Info
- When is the next episode of any particular anime is coming?
- Next episode synopsis
- Airing or Completed/Finished
- What are the Genres of any anime?
- And many more.....
You can also host your python code online on wayScript and schedule it there so that it'll run automatically and keep yourself updated
As you can see below that I added a custom search option by modifying the script so that I can look for the anime I want. You can also contribute to the code and add more features to it.
I've provided the code for above in Script2 ( with custom search option ) folder, so that the process of getting notification using pushbullet API is also clear to you.
- Piyush Kumar ( styles )