Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wordlist = pd.read_csv('wordlist.txt', sep='', encoding='cp1251')
- with open("outdata.txt", "w") as outputFile:
- for current_page in range(len(pdf_document)):
- page = pdf_document.loadPage(current_page)
- for x in wordlist:
- if page.searchFor(x):
- print("%s найден на %i" % (x, current_page))
- print("%s найден на %i" % (x, current_page), file=outputFile)
- outputFile.close()
- os.system('outdata.txt')
Advertisement
Add Comment
Please, Sign In to add comment