Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tag_bilde_fil = open('Tag1.txt', 'r')
- found = False
- brukerID = input('Please enter node ID: ')
- linje = tag_bilde_fil.readline()
- skip = 0
- while linje != '':
- linje = linje.rstrip('\n')
- if linje == brukerID:
- found = True
- linje = tag_bilde_fil.readline()
- tag_bilde_fil.close()
- if found == False:
- print('We could not find the specified node ID.')
- else:
- Registrerte_Bilder_Fil = open('TagForPicture1.txt', 'r')
- BrukerID = Registrerte_Bilder_Fil.readline().rstrip('\n')
- while BrukerID != '':
- imageId = BrukerID
- tag = Registrerte_Bilder_Fil.readline().rstrip('\n')
- if brukerID == tag:
- details = getImageDetails(imageId)
- if len(details) > 0:
- comments = getAllComments(imageId)
- print('------------------------')
- print ('Dato:', details[2])
- print ('Navn:', details[4], details[5] )
- print ('Comments:', comments)
- print()
- else:
- print('------------------------')
- print ('No information fount for Bildenavn:', imageId)
- print()
- BrukerID = Registrerte_Bilder_Fil.readline().rstrip('\n')
- Registrerte_Bilder_Fil.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement