I am really getting stuck on the thing I am trying to make. I want to make a really simple script to display the history of Google Chrome. When I use the following lines of code:
f = open('C:\\Users\\joey\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\History', 'rb')
data = f.read()
f.close()
I get the next output, I wil only show a part because it wil be too long otherwise.
x00\x00\x00\x00\x00\x81#\x9cU\n\x00\x81yC\t\x08\x06\x08\x08https://www.google.nl/search?q=de+zigodoom&oq=de+zigodoom&aqs=chrome..69i57.1507j0j7&sourceid=chrome&es_sm=93&ie=UTF-8de zigodoom
How can I just display the websites and not all the x00/x000 output. And how can I show each website on a different row.
for d in data:
print(data)
Wil something like this easy for loop work?