bhargavnova / python-helper-modules

MIT License
7 stars 24 forks source link

Find Files by Keywords and Retrieve Information #61

Closed bhargavnova closed 8 months ago

bhargavnova commented 8 months ago

Objective:

Develop a Python script that can search for files containing specific keywords in a specified directory and provide certain information about those files.

Features:

Example Usage:

# Example usage of the file finder script
import file_finder

# Specify the directory and keywords
directory_path = "/path/to/directory"
keywords = ["keyword1", "keyword2", "keyword3"]

# Find files and retrieve information
file_finder.find_files_by_keywords(directory_path, keywords)

Difficulty: Beginner/Intermediate

Tags: Python, File Handling, Scripting

Additional Information:

Contribution Guidelines

The updated guidelines can be found here.

Note:

lavanderhoney commented 8 months ago

Hello @bhargavnova , I have a fair bit of experience in python and am very confident about solving this. Can you please assign this issue to me?

bhargavnova commented 8 months ago

Sure @lavanderhoney :) Happy Coding!

lavanderhoney commented 8 months ago

I have a question @bhargavnova. What information should be returned for a matched file? Like should it return at what index the word is found or how many keywords are found in that file?

bhargavnova commented 8 months ago

Hi @lavanderhoney, any information will do, like file location, name, last modified, etc.. your choice.