getlootboxjson.py
input:
JSON stream (https://www.csgo.com.cn/api/lotteryHistory)
output:
data_ingestion/csv/yyyy-mm-dd_lootboxpurchases.csv
generate_df_purchases.py
input:
data_ingestion/csv/yyyy-mm-dd_lootboxpurchases.csv
output:
processed_dataframes/df_purchases.pkl
lootbox_db_scraping/lootbox_db_scraping.ipynb
input:
https://wiki.cs.money
lootbox_db_scraping/lootboxes_zh_en.json
lootbox_db_scraping/skins_en_zh.json
lootbox_db_scraping/manual_prices.json
output:
lootbox_db_sraping/df_pickles/df_src.pkl
lootbox_db_sraping/df_pickles/df_out.pkl
ML model training:
gambling_dataset/ML_model/training_ML_model.ipynb
input:
gambling_dataset/AnalyticDataset_Gray_LaPlante_PAB_2012.dat
output:
randomforestclassifier_gambling.pkl
generate_df_purchases.py
input:
data_ingestion/csv/yyyy-mm-dd_lootboxpurchases.csv
output:
processed_dataframes/df_purchases.pkl
variable_harmonization.py
input:
processed_dataframes/df_purchases_value.pkl
output:
processed_dataframes/df_purchases_dailyaggregate.pkl
output:
processed_dataframes/df_purchases_analytic.pkl
processed_dataframes/df_purchases_analytic_weekly/yyyy-mm-dd-df_purchases_analytic.pkl
gambling_dataset/ML_model/training_ML_model.ipynb
input:
gambling_dataset/AnalyticDataset_Gray_LaPlante_PAB_2012.dat
output:
gambling_dataset/ML_model/randomforestclassifier_gambling.pkl
ML_addiction_predictions.py
input:
gambling_dataset/ML_model/randomforestclassifier_gambling.pkl
processed_dataframes/df_purchases_analytic.pkl
processed_dataframes/df_purchases_analytic_weekly/yyyy-mm-dd-df_purchases_analytic.pkl
output:
processed_dataframes/df_purchases_analytic_predictions_date.pkl
processed_dataframes/df_purchases_analytic_predictions.pkl
flask_app/app.py
/
input:
processed_dataframes/df_purchases.pkl
processed_dataframes/df_purchases_dailyaggregate.pkl
processed_dataframes/df_purchases_analytic_predictions.pkl
/user/{user}
input:
processed_dataframes/df_purchases_dailyaggregate.pkl
processed_dataframes/df_purchases_analytic_predictions.pkl
processed_dataframes/df_purchases_analytic_predictions_date.pkl
/user/{user}/{date}
input:
processed_dataframes/df_purchases_value.pkl
launch.py
Schedule:
screen -dmS 'lootbox_flask' python3 app.py
at startupgetlootboxjson.py
every 2 minutesgenerate_df_purchases.py
every 10 minutesgenerate_df_purchases_value.py
every 30 minutesvariable_harmonization.py
every day at 16:02 UTCML_addiction_predictions.py
every monday at 16:15 UTC