diff --git a/curl_userInfo.ps1 b/curl_userInfo.ps1 new file mode 100644 index 0000000..cb9f6af --- /dev/null +++ b/curl_userInfo.ps1 @@ -0,0 +1,13 @@ +# Set your default values here +$PROF = "Ahrimdon%231597" # The % replaces the # for the Activision ID (e.g. Ahrimdon%231597) +# You do not need numbers for PSN or XBL +# Delete $PROF when getting maps and game modes. +$COOKIE_VALUE = "ACCT_SSO_COOKIE" + +$URL = "AddLinkHere" +$USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36" +$OUTPUT_FILE = "stats.json" + +curl -v $URL -H "Cookie: ACT_SSO_COOKIE=$COOKIE_VALUE" -H "User-Agent: $USER_AGENT" -o $OUTPUT_FILE + +# Replace \ No newline at end of file diff --git a/get_cod_stats.py b/get_cod_stats.py index fe6102d..96cc859 100644 --- a/get_cod_stats.py +++ b/get_cod_stats.py @@ -421,11 +421,26 @@ def get_and_save_data(player_name=None, all_stats=False, season_loot=False, iden season_loot_data = api.ModernWarfare.seasonLoot(platforms.Activision, player_name) map_list = api.ModernWarfare.mapList(platforms.Activision) identities_data = api.Me.loggedInIdentities() + + info = api.Me.info() + friendFeed = api.Me.friendFeed() + eventFeed = api.Me.eventFeed() + cp = cod_points = api.Me.codPoints() + connectedAccounts = api.Me.connectedAccounts() + settings = api.Me.settings() + save_to_file(player_stats, 'stats.json') save_to_file(match_info, 'match_info.json') save_to_file(season_loot_data, 'season_loot.json') save_to_file(map_list, 'map_list.json') save_to_file(identities_data, 'identities.json') + + save_to_file(info, 'info.json') + save_to_file(friendFeed, 'friendFeed.json') + save_to_file(eventFeed, 'eventFeed.json') + save_to_file(cp, 'cp.json') + save_to_file(connectedAccounts, 'connectedAccounts.json') + save_to_file(settings, 'settings.json') else: # For other specific optional arguments: if season_loot: