Skip to content

Web Scraping: GamesForYou will choose a random game for PS5 or X box Series X based on users choices. The program will also show all statistics of all the users choices ( Pandas, Request, Beautiful Soup, Matplotlib )

License

Notifications You must be signed in to change notification settings

Giuseppe-Bonifati/GamesForYou

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GamesForYou 🎮 📊

Description

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 )

Video Demo:

Installation 📦

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

List of the games

https://en.wikipedia.org/wiki/List_of_PlayStation_5_games

https://en.wikipedia.org/wiki/List_of_Xbox_Series_X_and_Series_S_games

Directory

In the directory project there are the following directories:

▪️ project.py

▪️ test_project.py

▪️ user.csv

▪️ requirements.txt

▪️ README.md

▪️ .gitignore

▪️ LICENSE.md

Design

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

Visuals

image

image

License

About

Web Scraping: GamesForYou will choose a random game for PS5 or X box Series X based on users choices. The program will also show all statistics of all the users choices ( Pandas, Request, Beautiful Soup, Matplotlib )

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages