GithubHelp home page GithubHelp logo

lshalloarchive / f1stats Goto Github PK

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

Provides active user statistics for subreddits concerned with formula1

License: MIT License

Python 98.52% Dockerfile 1.48%
reddit statistics user-statistics formula1 formula2

f1stats's Introduction

f1stats (Discontinued)

Due to recent reddit API changes the current active users cannot be queried accurately enough to make this project worthwhile. That's why I've decided to discontinue it.

Provides user statistics for the f1 subreddit. (Including r/Formula1Point5 and r/F1FeederSeries)

View the statistics:


I've created this project based on this reddit post
This project logs the active users once every minute using the reddit api at https://reddit.com/r/formula1/about.json

Enjoy!

If you have any suggestions create an issue or write me on reddit. I'm u/lshallo

Running your own version

Easy version with docker-compose:

docker-compose.yml

version: '3'
services:
  reddit-stats:
    build: .
    restart: unless-stopped
    volumes:
      - /opt/f1stats/config:/app/config # adjust path
    # environment: # optional; uncomment for more verbose output
    #  - debug: True

  mysql:
    image: mariadb
    restart: unless-stopped
    environment:
      - MYSQL_ROOT_PASSWORD: example # change me

/opt/f1stats/config/mysql.ini

# you can use mysql hosts or write directly to http (to not expose an external mysql instance)
# needs to begin with mysql.[something]
[mysql.friendlyname]
host=mysql
password=seeAbove
user=root # not recommended
database=f1stats # create manually

# alternatively you can write to a php script which will enter the data into the database
# must begin with http.[something]
[http.friendlyname]
url=http://mydomain.com/writeData.php # see external for writeData.php | include protocol (http)
uid=randomcharacters # change to your liking
token=randomcharacters # change to your liking

/opt/f1stats/config/praw.ini

# how to generate reddit oauth: https://praw.readthedocs.io/en/v7.1.0/getting_started/quick_start.html
[f1stats]
client_id=yourclientid
client_secret=yourclientsecret
password=redditpassword123
username=redditusernamewow
user_agent=your_reddit_guideline_appropriate_user_agent

Additionally you will need to adjust the data url(s) in chartloader.js and compare.js to your own domain

f1stats's People

Contributors

dependabot[bot] avatar lshallo 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.