raleighlittles / Snapchat-Chats-And-Location-Analyzer

A Python script for parsing your chat history and visualizing your location history on Snapchat
16 stars 2 forks source link

Error in location parser #2

Closed realfinklej closed 2 weeks ago

realfinklej commented 2 weeks ago

Trying to use the map feature but get this error

`Traceback (most recent call last): File "C:\Users\Daniel\Downloads\Snapchat-Chats-And-Location-Analyzer-main\Snapchat-Chats-And-Location-Analyzer-main\snapchat_location_history_analyzer.py", line 36, in generate_folium_map(argparse_args.input_file, argparse_args.output_file) File "C:\Users\Daniel\Downloads\Snapchat-Chats-And-Location-Analyzer-main\Snapchat-Chats-And-Location-Analyzer-main\snapchat_location_history_analyzer.py", line 14, in generate_folium_map timestamps, latitudes, longitudes = location_parser_helper.get_location_history_coordinates( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Daniel\Downloads\Snapchat-Chats-And-Location-Analyzer-main\Snapchat-Chats-And-Location-Analyzer-main\location_parser_helper.py", line 18, in get_location_history_coordinates timestamps.append(entry['Time'])


TypeError: list indices must be integers or slices, not `str``
raleighlittles commented 2 weeks ago

@realfinklej I'll create a data dump and look into this. Also in general:

raleighlittles commented 2 weeks ago

The format of the Location history files appear to have changed from the older dumps, I've fixed it so that hopefully it should work with both.

image