Giter Site home page Giter Site logo

miki4920 / battlemapsearcher-flask Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.97 MB

A Battlemap Searcher designed as a single page application in Flask

License: GNU General Public License v3.0

Python 73.94% HTML 11.84% CSS 11.36% JavaScript 2.87%

battlemapsearcher-flask's Introduction

BattlemapSearcher-Flask

Overview

BattlemapSearcher-Flask is a single page application designed to search for battlemaps.

BattlemapsSearcher

The project is divided into two main parts:

  1. Web Scraper: This part of the project is responsible for scraping Reddit according to specified subreddits. The main script for this part is main.py located in the webscrapper folder.

  2. Website: This part of the project is a search engine for the maps scraped by the web scraper. The main script for this part is app.py.

Both parts of the project require pipenv to run.

Setup

Prerequisites

  • Python 3.10 or higher
  • Pipenv

Environment Variables

The following environment variables are required to run the project:

  • IP: IP of the database (MySQL by default, however change can be made in config)
  • USERNAME: Database account username
  • PASSWORD: Database account password
  • SCHEMA_NAME: Name of the database schema

Installation

  1. Clone the repository:

    git clone https://github.com/miki4920/BattlemapSearcher-Flask.git
  2. Navigate to the project directory:

    cd BattlemapSearcher-Flask
  3. Install the project dependencies using pipenv:

    pipenv install
  4. Set the required environment variables.

  5. Run the web scraper:

    pipenv run python webscrapper/main.py
  6. Run the website:

    pipenv run python app.py

Usage

After setting up the project, you can use the website to search for battlemaps. The web scraper will periodically scrape Reddit for new maps according to the specified subreddits. Warning, the API used is pushshift.io, which has a tendency to not work.

Contributing

Contributions are welcome! Please feel free to submit a pull request.

License

This project is licensed under the terms of the MIT license.

battlemapsearcher-flask's People

Contributors

miki4920 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.