Skip to content

alyssadsouza/SwitchScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwitchScraper

SwitchScraper is a Python project designed to scrape the Nintendo Switch store for game deals. This project uses Playwright for browser automation.

Setup

To set up the project, follow these steps:

1. Clone the repository

git clone https://github.com/alyssadsouza/SwitchScraper.git
cd SwitchScraper

2. Set up a virtual environment

It is recommended to use a virtual environment to manage dependencies. You can create and activate a virtual environment using the following commands:

python3 -m venv venv
source venv/bin/activate # on macOS and Linux
venv\Scripts\activate # or Windows

3. Install the requirements

Install the required packages using pip:

pip install -r requirements.txt

Ensure you have Playwright installed and set up by running:

playwright install

After setting up the environment and installing the dependencies, you can run the scraper by with the main.py script.

python main.py

This will open a Chromium browser, navigate to the Nintendo Switch store game deals page, and scrape the available deals.

Project Structure

SwitchScraper/
│
├── scraper.py            # Contains the Scraper and SwitchScraper classes
├── main.py               # Main script to run the scraper
├── constants.py          # Contains constants used in the project
├── requirements.txt      # Lists the dependencies
└── README.md             # Project documentation

About

Scraper for Nintendo Switch game data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages