Created
December 31, 2017 06:41
-
-
Save takurx/d9aa4d60d93929139d400d35451c1c22 to your computer and use it in GitHub Desktop.
file open, find string and print(standard output)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
f = open('./Bookmarks.txt') | |
line = f.readline() | |
while line: | |
# print(line) | |
if line.find('url":') > 0: | |
print(line) | |
line = f.readline() | |
f.close |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment