21 lines
590 B
Python
21 lines
590 B
Python
from utils import search
|
|
import sys, os
|
|
|
|
# Add the root directory to sys.path
|
|
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
|
from loggings.logging_config import logger
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
logger.info("Receiving the search query")
|
|
query = input("Enter the search query: ")
|
|
logger.info(f"Searching for {query}")
|
|
page_content, all, pages = search(query)
|
|
logger.info("Search completed")
|
|
logger.info(f"Page content: {page_content}")
|
|
print(f"Page content: {all}")
|
|
print(f"Pages: {pages}")
|
|
print("Search completed") |