https://github.com/crisszkutnik/gamersclub-spreadsheets
A match web scraper for the GamersClub platform.
https://github.com/crisszkutnik/gamersclub-spreadsheets
counter-strike counter-strike-global-offensive csgo gamersclub python python3 spreadsheets web-scraper
Last synced: 3 months ago
JSON representation
A match web scraper for the GamersClub platform.
- Host: GitHub
- URL: https://github.com/crisszkutnik/gamersclub-spreadsheets
- Owner: crisszkutnik
- Created: 2021-01-15T05:13:04.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-18T15:04:55.000Z (over 4 years ago)
- Last Synced: 2024-12-29T11:44:47.003Z (5 months ago)
- Topics: counter-strike, counter-strike-global-offensive, csgo, gamersclub, python, python3, spreadsheets, web-scraper
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GamersClub scraper to spreadsheets
This utility is designed to scrape data from the GamersClub webpage and save it on a Google Drive spreadsheet. It collects the following data: match id, date, hour,
map, score, player level, lobby level, kills, assists, deaths, K/D, ADR, KDR, KAST, survived rounds, traded rounds, flash assists, 1vsX, multi kills, first kills,
points awarded/taken and rating 2.0
Rating 2.0 is calculated based on [flashed.gg reverse engineering Rating 2.0](https://flashed.gg/posts/reverse-engineering-hltv-rating/)# Set up
### 1. First, clone this repo
`git clone https://github.com/crisszkutnik/gamersclub-spreadsheets.git`
### 2. Install dependencies
`
pip3 install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib selenium
`You also have to install the correct driver for the browser that you are going to use
If you use Ubuntu, geckodriver for Firefox can be installed with the following command:
`sudo apt install firefox-geckodriver`Otherwise, visit the [Selenium webpage](https://selenium-python.readthedocs.io/installation.html#drivers) for instructions.
### 3. Set up spreadsheet API
Access to Google spreadsheet API webpage [here](https://developers.google.com/sheets/api/quickstart/python). Go to Step 1 and click **Enable the Google Sheets API**.
Follow the set up steps and then download the file with your credentials. Name it **credentials.json** and paste this file on the cloned folder.### 4. Create your **config.json**
This file must be located on the root folder and must contain: spreadsheet_id, player_name and matches array
A guide to finding the spreadsheet ID can be found [here](https://developers.google.com/sheets/api/guides/concepts#spreadsheet_id)
An example can be:
```JSON
{
"spreadsheet_id": "Your spreadsheet id here",
"player_name": "cristobalszk",
"matches": [
10426756,
10425538
]
}
```### 5. Run the script