Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Riotcoke123/PCMEMES-VS-IP2-Leaderboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PCMEMES VS IP2 Leaderboard

IP2 README

This project fetches data from two different URLs, processes the data, and then serves the results through an API endpoint. It fetches posts from the provided URLs, calculates a score based on each post's vote state and author, and then sorts the results based on the score. The sorted results are then written to an output file named output.json.

Dependencies

This project uses the following dependencies:

  • express: A web application framework for Node.js
  • axios: A promise-based HTTP client for Node.js

Setup

To set up the project, follow these steps:

  1. Clone the repository to your local machine.
  2. Install the dependencies using npm: npm install.
  3. Fill in the required values for the headers in the headers object in index.js.
  4. Run the project using npm start.

Usage

Once the server is running, you can access the results through the API endpoint /results. This endpoint returns the sorted results in JSON format.

API Endpoints

  • GET /results: Returns the sorted results in JSON format.

PCMEMES.NET README

This is a Python script to scrape the leaderboard data from PCMEMES.NET and save it to a JSON file.

Dependencies

  • requests
  • BeautifulSoup
  • json
  • time
  • re
  • logging

Usage

To use this script, you need to provide your access token and client ID. Additionally, make sure you have Python installed on your system.

python scraper.py

Script Explanation

This script scrapes data from the PCMEMES.NET leaderboard for various URLs. It extracts usernames and corresponding upvotes, applies a multiplier, and saves the data to a JSON file.

Configuration

You need to set your access token and client ID in the script before running it.

This project is licensed under the GPL-3.0 License. See the LICENSE file for details.

Author

Created by RIOTCOKE

About

PCMEMES VS IP2 Leaderboard

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published