Guest User

Untitled

a guest
Oct 24th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. wordlist = pd.read_csv('wordlist.txt', sep='', encoding='cp1251')
  2.  
  3. with open("outdata.txt", "w") as outputFile:
  4. for current_page in range(len(pdf_document)):
  5. page = pdf_document.loadPage(current_page)
  6. for x in wordlist:
  7. if page.searchFor(x):
  8. print("%s найден на %i" % (x, current_page))
  9. print("%s найден на %i" % (x, current_page), file=outputFile)
  10. outputFile.close()
  11. os.system('outdata.txt')
Advertisement
Add Comment
Please, Sign In to add comment