fo = open("asset_database_2_16_0_Release.txt", "r")
fo.seek(9)
sep = fo.read(24 - 9)
print (sep)
What I want is to extract data between these {"code":" and _icon"," characters
{"code":"Abarth_500_2014_icon","type":"8","version":"95"}
{"code":"AlfaRomeo_4CCoupeCrew_2013_icon","type":"8","version":"54"},
I want to extract like this
Abarth_500_2014 only
AlfaRomeo_4CCoupeCrew_2013
I have over 1000 lines all with different car names,
so I am trying to get the .py to read from starting {"code":" <---- data I don't want ---> _icon","type":"8","version":"95"},
All 1000 row have these characters in it {"code":" and _icon","
The code I test works but only for 1 line, and I can't figure out how to
Extract every line, Now this only works for the example I am using above 24 - 9.
Now this file is not a .Json format, I was told that the data looks like Json
so that is why I listed the title as Json.
I rename this file asset_database_2_16_0_Release to asset_database_2_16_0_Release.txt
I have tried using Batch files, but I can't figure out how to get around all the special characters using batch