DaemonForums  

Go Back   DaemonForums > Miscellaneous > Guides

Guides All Guides and HOWTO's.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th July 2024
ripe's Avatar
ripe ripe is offline
Package Pilot
 
Join Date: Feb 2013
Location: France
Posts: 179
Default A script to get informations about gog.com games (and others platforms)

Hi,
I write a script that use an OpenBSD-games-database (https://github.com/playonbsd/OpenBSD-Games-Database) and retrieves informations about that games from GOG.com. Launch the script with

Code:
$./pobsdvgof.0.4.sh
with the option -r (rate and count values, ie how many people voted and their rating), -d (date of the end of promo for sales games), -a (for all this informations), -g game (one game), -l (list with one game per line). I notice that "-ga" or "-g a" will retrieve all games and the output is in the terminal.
Informations are saved in files, or show in terminal for one game and for the option "-ga" or "g a" also.
The script produces and deletes files so I advice to put it in a own directory.

The script takes time as it can retrieve 141 games (on GOG.com).

Code:
$ time ./pobsdvgof.0.4.sh 
4m39.08s real     0m22.26s user     0m24.79s system
One game is fast, for a list of 8 games:
Code:
time ./pobsdvgof_0.4.sh -l my_list_gog_game
0m11.69s real     0m01.79s user     0m02.07s system
This script use sed, gsed, awk, curl, I write it in ksh language.

I tried a different script with steam and humblebundle games, not so evolve as this one. A script with steam games requires a different code + there is restriction age for some games that I can not know how to go through with curl. With humblebundle I do not know how to retrieve the sale value in the html code as it seems not to appear.
You can add a "-s" to curl to make it silence.

It is an experience and learning.

Enjoy and of course I am not responsible if it break your system!
Attached Files
File Type: sh pobsdvgof_0.42.sh (9.8 KB, 0 views)

Last edited by ripe; 1 Week Ago at 12:02 PM. Reason: slip of the tongue, script updated
Reply With Quote
  #2   (View Single Post)  
Old 25th July 2024
ripe's Avatar
ripe ripe is offline
Package Pilot
 
Join Date: Feb 2013
Location: France
Posts: 179
Default Itch.io games

Same for itch.io games, based on the same OpenBSD games database.
When a "?" appear, it means that there is no rating value and/or rating count.
Attached Files
File Type: sh pobsditchio_0.2.sh (14.0 KB, 97 views)
Reply With Quote
  #3   (View Single Post)  
Old 1st August 2024
ripe's Avatar
ripe ripe is offline
Package Pilot
 
Join Date: Feb 2013
Location: France
Posts: 179
Default humblebundle games

Same for humblebundle games.
Age check, I dont know how to pass value with curl, I try with https://reqbin.com/req/c-sma2qrvp/cu...t-form-example but I am not enought practice of web.
Attached Files
File Type: sh pobsd_humblebundle.0.4.sh (10.6 KB, 103 views)
Reply With Quote
  #4   (View Single Post)  
Old 6th August 2024
ripe's Avatar
ripe ripe is offline
Package Pilot
 
Join Date: Feb 2013
Location: France
Posts: 179
Default

Same for steam games. There is 385 games, it takes time to retrieve all the informations with
Code:
./pobsd_steam_0.97.sh -a
Maybe best is to use for one game or a list of games .
I cant pass trough age check with curl, I dont know how.
Attached Files
File Type: sh pobsd_steam.0.98.sh (16.1 KB, 1 views)

Last edited by ripe; 2 Weeks Ago at 01:53 PM. Reason: script updated and correct
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Games are slow on OpenBSD 6.4 ripe OpenBSD Packages and Ports 6 2nd January 2019 01:35 PM
your 3 favorite games welkin FreeBSD Ports and Packages 17 5th June 2010 08:26 PM
Problem with no sound in games troberts FreeBSD General 9 21st July 2008 08:53 PM
Voip FreeBSD ( I need some informations ) bsduser FreeBSD General 7 16th June 2008 03:50 AM
CrossOver Games for BSD udragon FreeBSD General 6 27th May 2008 08:59 AM


All times are GMT. The time now is 03:21 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick