Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
keyword matching part2
#1
Script needs to read excel file which has let's say column A having these set of keywords let' s say 100 such keywords in this column and
after reading these keywords from this column 'A' python script should search them to a particular path in D drive for all folders and subfolders
containing miscellaneous file types(.xml,.txt,.html,.yml,.sh...etc.)and once match is found lets say for first keyword it finds
a match in particular file at specific line number in this file and again it finds the same keyword in another file at some other line number
so here totally it was found 2 times and at different line nos in different files but it may also be the scenario that same keyword in same file
is found more than once on same line no itself or at different line no as well in the same file. So we need finally this statics for this keyword :- 1)
File names where it was found 2) At what lines ( it may be repeated more than one line nos as it may depend on the frequency of that particular keyword
how many times it's occuring in a single file itself ) in these files it was found. 3)
Total count of that particular keyword where all it was found while searching all the file in the
given disk drive for all the files,folders,subfolders in it.
also after reading this excel file it should write the found these details in a html file which should contain these statics (as a graph format in html file) :-1)Keyword matching file names 2) All the line nos where all
it was found with their file names as well 3) Total count for each keyword which were found different no. of times while searching in this
D drive( which has different types of files in it) for all the files,folders,subfolders in it. so any code help to achieve the same result please?

[b]Desired result:[/b]- code is supposed to give result in a set format [keyword1,found in file name(at this lines),found in file name(at this line),(total found count of keyword1)] so for all the keywords which are listed in excel file's column 'A', it should give these results that too in a graph format in the html file and up on clicking on this pie chart or graph we should be informed this keyword occurred in this file and at this particular line no. also that particular line no. should also be highlighted when we select that file where that keyword was found after scanning is completed.

Thanks
Reply


Messages In This Thread
Keyword matching - by janho - Dec-18-2018, 01:50 PM
RE: keyword matching part2 - by micseydel - Jan-02-2019, 11:04 PM
RE: Keyword matching - by buran - Dec-18-2018, 02:01 PM
RE: Keyword matching - by janho - Dec-21-2018, 04:02 AM
RE: Keyword matching - by micseydel - Dec-21-2018, 07:43 PM
RE: Keyword matching - by janho - Dec-25-2018, 10:38 AM
RE: Keyword matching - by janho - Dec-26-2018, 11:21 AM
RE: Keyword matching - by janho - Dec-27-2018, 11:00 AM
RE: Keyword matching - by janho - Dec-28-2018, 02:35 AM
RE: Keyword matching - by woooee - Dec-28-2018, 02:56 AM
RE: Keyword matching - by janho - Dec-28-2018, 01:07 PM
RE: Keyword matching - by janho - Dec-28-2018, 03:11 PM
RE: Keyword matching - by janho - Dec-31-2018, 04:27 AM
RE: Keyword matching - by janho - Dec-31-2018, 09:01 AM
RE: Keyword matching - by micseydel - Dec-31-2018, 05:19 PM
RE: Keyword matching - by janho - Jan-01-2019, 04:58 AM
RE: Keyword matching - by janho - Jan-01-2019, 06:55 AM
keyword matching part2 - by janho - Jan-01-2019, 12:35 PM
RE: Keyword matching - by janho - Jan-01-2019, 12:41 PM
RE: Keyword matching - by janho - Jan-02-2019, 05:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Find a specific keyword after another keyword and change the output sgtmcc 5 919 Oct-05-2023, 07:41 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020