Category PS4 CFW and Hacks       Thread starter PSXHAX       Start date Nov 26, 2019 at 8:31 AM       1,277       1            
Since the PS4Updates Python Script, PS4 DLC Indexer, PS4 Imagemap project and PSN Game Search application developer Masamerc made available on Github ps4_calendar_updater which is a Python script that updates Google Calendar with upcoming PS4 video game releases. 😃 🗓

Download: check_calendar.py / main_scraper.py / GIT

And from the README.md: ps4_release_calendar

1. Overview


A web-scraping project which updates your Google Calendar with release dates of upcoming PS4 games.

The main goal is to help PS4 gamers like myself who have no time or too lazy to go to websites like IGN to check upcoming PS4 games.

Script in action
PS4 Release Calendar Updater Script for Google Calendar by Masamerc.png

Updated Calendar
PS4 Release Calendar Updater Script for Google Calendar by Masamerc.jpg

2. Instructions

Google Calendar API


To access your Google calendar using Python you need to set up Google Calendar API. This YouTube tutorial by Indian Pythonista explains the process very well. (watch it until the initial setup.)

If you have wathched tutotorial, you should have credentials you need saved as client_secrets.json. Place the file in the main project directory and in the pickle/ folder.

Installing Dependencies

All the packages/modules required can be found in requirements.txt To install, simply use pip:
Code:
pip install -r /path/to/requirements.txt
Running the Script

There are two ways to run the script: with or without pickle.

without pickle

*every time you run any of the scripts, you will be prompted to login to your Google Account to authorize the app

First, run the check_calendar.py, which prints out the name and id of each Google calendar you have (I recommend you create a new calendar just for the release dates so you can toggle it on/off), and take note of the id of calendar you want to use for the script.

Alternatively, you can just log in to your Google calendar and click "configure" on the calendar you want to use, and then scroll down to find the id.

Paste the id in the update_calendar function found at the bottom of main_scraper.py as the third argument, and run the main_scraper.py script.

with pickle

*with pickle that stores you credentials, you will only be prompted once to log in to your Google account

First run the save_creds.py which will prompt you to log in and authorize the app, and then stores credentials as token.pkl.

Then run the check_calendar_pickle.py, which prints out the name and id of each Google calendar you have, and take note of the id of calendar you want to use for the script.

Paste the id in the update_calendar function found at the bottom of scraper_pickle.py as the third argument, and run the scraper_pickle.py script.
 

Comments

Recent Articles
New PlayStation VR (PS VR) Headset Rumored to Arrive in 2020
We've seen PSVR2 Concepts, next-gen PS VR2 Patents, Sony's Augmented Reality Wireless Headset and based on the latest rumors a new PlayStation VR (PS VR) headset may be coming to PlayStation...
Call of Duty: Advanced Warfare PS4 Mod Menu 1.23 is Now Available
Earlier this week we saw some GTA V PS4 Mod Menu 2020 Demos, and today PlayStation 4 scene developer @CustomHooker shared via Twitter a Call of Duty: Advanced Warfare PS4 Mod Menu 1.23 with help...
PlayStation Store's Totally Digital Sale Live with Savings on PSN Games
Get set to awaken a mysterious power within to save the world in Indivisible, make a daring escape with a little help from a friend in A Way Out or fight your way through the perfect run in the...
PlayStation 5 User Interface (PS5 UI) Rumored Image Leak Surfaces
An image that is rumored to be a screenshot of the current PlayStation 5 User Interface (PS5 UI) has reportedly leaked by an Anonymous game studio employee on the popular 4Chan bulletin board. 🤩...
Top