Metadata-Version: 2.4
Name: metafinder
Version: 1.2
Summary: MetaFinder - Metadata search through Search Engines
Home-page: https://github.com/Josue87/MetaFinder
Author: Josue Encinar (@JosueEncinar)
License: GNU GPLv3+
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.25.1
Requires-Dist: pikepdf>=2.5.2
Requires-Dist: beautifulsoup4>=4.9.3
Requires-Dist: openpyxl>=3.0.5
Requires-Dist: python-docx>=0.8.6
Requires-Dist: python-pptx>=0.6.18
Requires-Dist: prompt-toolkit>=3.0.5
Requires-Dist: urllib3>=1.26.4
Dynamic: author
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary


**MetaFinder - Metadata search through Search Engines**
=======================================================

Installation:
-------------

    > pip3 install metafinder

Upgrades are also available using:

    > pip3 install metafinder --upgrade

Usage
-----

MetaFinder can be used in 2 ways:

CLI
---

    metafinder -d domain.com -l 20 -o folder [-t 10] -go -bi -ba 

Parameters: 

-  d: Specifies the target domain. 
-  l: Specify the maximum number of results to be searched. 
-  o: Specify the path to save the report. 
-  t: Optional. Used to configure the threads (4 by default). 
-  v: Show Metafinder version.
-  go: Optional. Search in Google. (Default) 
-  bi: Optional. Search in Bing. 
-  ba: Optional. Search in Baidu. (Experimental)

In Code
-------

    import metafinder.extractor as metadata_extractor

    documents_limit = 5
    domain = "target_domain"
    result = metadata_extractor.extract_metadata_from_google_search(domain, documents_limit)
    # result = metadata_extractor.extract_metadata_from_bing_search(domain, documents_limit)
    # result = metadata_extractor.extract_metadata_from_baidu_search(domain, documents_limit)
    authors = result.get_authors()
    software = result.get_software()
    for k,v in result.get_metadata().items():
        print(f"{k}:")
        print(f"|_ URL: {v['url']}")
        for metadata,value in v['metadata'].items():
            print(f"|__ {metadata}: {value}")

    document_name = "test.pdf"
    try:
        metadata_file = metadata_extractor.extract_metadata_from_document(document_name)
        for k,v in metadata_file.items():
            print(f"{k}: {v}")
    except FileNotFoundError:
        print("File not found")

Author
======

This project has been developed by:

-  **Josué Encinar García** -- https://twitter.com/JosueEncinar

Contributors
============

-  **Félix Brezo Fernández** -- https://twitter.com/febrezo

Disclaimer!
===========

The software is designed to leave no trace in the documents we upload to a domain. The author is not responsible for any
illegitimate use.


