bonekcok21

Untitled

Sep 6th, 2021
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import re
  2.  
  3. urls_file = "TEMPEK.txt"
  4. urls = [line.rstrip('\n') for line in open(urls_file)]
  5.  
  6. regex = r"(?<=\,\").*?(?=\")"
  7. matches = re.finditer(regex, line, re.MULTILINE)
  8. print("OK COK")
  9. for matchNum, match in enumerate(matches, start=1):
  10. open('JEMBOOT.txt', 'a').write(match.group()+ '\n')
Advertisement
Add Comment
Please, Sign In to add comment