Skip to content

Latest commit

 

History

History
137 lines (69 loc) · 3.96 KB

readme.md

File metadata and controls

137 lines (69 loc) · 3.96 KB

How to Setup This Web Automation Project

Getting real time anime info and updates sent directly to your smartphone

Contents:

Getting Started

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.

  1. Get the code by cloning the repository

  2. Open the folder Script and It'll look something like below

  1. 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 )

  1. 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 )

  2. 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:

Prerequisites

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

Setting Up Pushbullet Channel

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

  1. Make a pushbullet account

  1. Make a channel on your pushbullet account

  1. generate your pushbullet ACCESS TOKEN as follows

  1. Copy the ACCESS TOKEN you generated and replace it with "YOUR_ACCESS_TOKEN" in the code in line
api_key = 'YOUR_ACCESS_TOKEN'

  1. Uncomment the lines marked in the following image ( remove '#' symbol from start )

  1. Run the module again as shown in step 5 of Getting Started section

More Possibilities

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

wayscript

Custom Search Feature

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.

References

  1. pushbullet Docs

  2. selenium Docs

  3. How to use selenium

Authors

  • Piyush Kumar ( styles )