Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

how to write this script with python?

how to write this script with python?

{"credits":1405,"protected":"1410370373","bookmarked":1,"fan":0,"emailshared":1,"installsgenerated":0,"updates":[],"flags":{"advancedmissionmodifier":100,"advancedmissionsenabled":1,"allowrelocation":1,"attacking":1,"baseValidationEnabled":0,"battlesaveinterval":60,"cdn_bandwidth_log_threshold":32,"central_logging_enabled":1,"clientTimeout":1200,"cullproblemunits":10,"current_event_base_timeout":4200,"customizableunits":1,"enable_deep_thought":0,"enable_deep_thought_events_01":0,"enable_deep_thought_events_02":0,"enable_deep_thought_events_03":0,"enable_deep_thought_events_04":0,"enable_new_attacklog":1,"enable_state_change_logging":0,"endbattlestopprojectiles":0,"event_attacking_A":80,"event_attacking_B":80,"event_attacking_C":80,"event_attacking_D":80,"event_attacking_E":80,"event_defending_A":100,"event_defending_B":100,"event_defending_C":100,"event_defending_D":100,"event_defending_E":100,"eventduration":604800,"eventendbuffer":172800,"eventstart":1408665600,"eventtype":29,"eventversion":0,"extra_platoon_logging":0,"fanfriendbookmarkquests":1,"fastbuildtimesaddusers":0,"fastbuildtimesenabled":1,"framework_logging_enabled":1,"fwr_ab_group3":43200,"fwr_day_length":86400,"gamedebug":1,"getflagsinterval":60,"gs_load_and_save_percent":0,"gsconnect":1,"gspinginterval":60000,"hacking_psa":0,"log_basesave_failure":1,"min_gateway_message_size_to_compress":1024,"minimum_client_soft_version":0,"nub_split_id":29705190,"pageinterval":15,"promodeadline":"1409778000","promoindex":"1","qos_get_balances_interval":60,"reject_damaged_units":0,"repair_time":0,"repair_time_e":0,"repair_time_m":25,"repair_time_s":0,"resource_gift_sku":0,"resource_gift_time_e":0,"resource_gift_time_s":0,"savedelay":5,"shorterbuildtimesaddusers":0,"shorterbuildtimesenabled":1,"show_thorium_underlay":1,"show_total_thorium":1,"sroverlay":1,"suppress_audio":0,"thoriumdepositmodifier":100,"thoriumgoldratioA":25,"thoriumgoldratioB":10,"thoriumgoldratioC":5,"updating":0,"user_deployable_culling":1,"validate_stats":1,"wavesPerLoad":0},"giftsentcount":0,"error":0,"currenttime":1409767516,"h":"451bf3ccb68e841e781b103c295dab8c","hn":9298337}

2 Answers

What you posted does not seem to be a program. It looks like a Python dictionary, which is just a list of key value pairs. What do you want to do with this information?

hello, i play a game on facebook. i try to use fiddler and cheat engine to crack the code and the game's script. i found that python dictionary and filled into fiddler, but it wont change any. i asked my friends who can teach me how to crack the game and he introduced me to sign up treehouse. what sort of the subject do you reckon would be the best for me to learn what i need?

This could do the trick. =) dictionary = [ {'username': 'erick', 'points': 483},]