GamesForYou is a simple project made for CS50 final project. GamesForYou will choose a random PS5 or Xbox Series X games, based on the type of game that the user will choose, also at the end the program will show you all statistics of all the users choices (type of games). GamesForYou take the information of the games form Wikipedia ( Web scraping )
In the file there are all the packages to be installed
Then we import on project.py all the following:
import random
import sys
from csv import DictWriter
import matplotlib.pyplot as plt # type: ignore
import pandas as pd # type: ignore # library for data analysis
import requests # type: ignore # library to handle requests
from bs4 import BeautifulSoup # type: ignore # library to parse HTML documents
https://en.wikipedia.org/wiki/List_of_PlayStation_5_games
https://en.wikipedia.org/wiki/List_of_Xbox_Series_X_and_Series_S_games
In the directory project there are the following directories:
▪️ project.py
▪️ test_project.py
▪️ user.csv
▪️ requirements.txt
▪️ README.md
▪️ .gitignore
▪️ LICENSE.md
All the project (code) is on the file project.py.
The program take the users informations and each time check if the informations are valid , then with the help of request and Beautiful Soup and pandas the program extract content and data from Wikipedia and return a random game.
Once we display the result , the program will save all the informations in a file csv, in this case in the file user.csv.
At the pandas with help to calculated all the statistics and it will be displayed to the users with Matplotlib