Spaces:
Runtime error
Runtime error
fikird
commited on
Commit
·
d6bf15a
1
Parent(s):
2f972e3
Update dependencies and push enhanced features to Space
Browse files- app.py +1 -1
- osint_engine.py +11 -11
- requirements.txt +9 -11
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import asyncio
|
3 |
from search_engine import search, advanced_search
|
4 |
-
from osint_engine import
|
5 |
import time
|
6 |
|
7 |
def format_results(results):
|
|
|
1 |
import gradio as gr
|
2 |
import asyncio
|
3 |
from search_engine import search, advanced_search
|
4 |
+
from osint_engine import create_report
|
5 |
import time
|
6 |
|
7 |
def format_results(results):
|
osint_engine.py
CHANGED
@@ -1,25 +1,25 @@
|
|
1 |
-
import
|
2 |
-
import aiohttp
|
3 |
-
from bs4 import BeautifulSoup
|
4 |
import re
|
5 |
-
from typing import Dict, List, Optional, Union, Any
|
6 |
import json
|
7 |
-
|
8 |
-
import
|
|
|
9 |
import requests
|
10 |
-
from PIL import Image
|
11 |
-
import io
|
12 |
-
import os
|
13 |
import httpx
|
14 |
-
import
|
|
|
|
|
15 |
from selenium import webdriver
|
16 |
from selenium.webdriver.chrome.options import Options
|
17 |
from selenium.webdriver.chrome.service import Service
|
18 |
from webdriver_manager.chrome import ChromeDriverManager
|
19 |
from geopy.geocoders import Nominatim
|
20 |
from waybackpy import WaybackMachineCDXServerAPI
|
21 |
-
import
|
|
|
22 |
from googlesearch import search as google_search
|
|
|
|
|
23 |
|
24 |
class OSINTEngine:
|
25 |
"""OSINT capabilities for advanced information gathering"""
|
|
|
1 |
+
import os
|
|
|
|
|
2 |
import re
|
|
|
3 |
import json
|
4 |
+
import time
|
5 |
+
import asyncio
|
6 |
+
import aiohttp
|
7 |
import requests
|
|
|
|
|
|
|
8 |
import httpx
|
9 |
+
from PIL import Image
|
10 |
+
from io import BytesIO
|
11 |
+
from typing import Dict, List, Any, Union
|
12 |
from selenium import webdriver
|
13 |
from selenium.webdriver.chrome.options import Options
|
14 |
from selenium.webdriver.chrome.service import Service
|
15 |
from webdriver_manager.chrome import ChromeDriverManager
|
16 |
from geopy.geocoders import Nominatim
|
17 |
from waybackpy import WaybackMachineCDXServerAPI
|
18 |
+
import whois
|
19 |
+
from datetime import datetime
|
20 |
from googlesearch import search as google_search
|
21 |
+
import base64
|
22 |
+
import io
|
23 |
|
24 |
class OSINTEngine:
|
25 |
"""OSINT capabilities for advanced information gathering"""
|
requirements.txt
CHANGED
@@ -2,27 +2,25 @@
|
|
2 |
torch==2.0.1+cpu
|
3 |
torchvision==0.15.2+cpu
|
4 |
torchaudio==2.0.2+cpu
|
5 |
-
transformers==4.
|
6 |
numpy>=1.23.5
|
7 |
scikit-learn>=1.2.2
|
8 |
scipy>=1.10.1
|
9 |
nltk>=3.8.1
|
10 |
-
sentence-transformers
|
11 |
tqdm>=4.65.0
|
12 |
-
gradio==
|
13 |
-
duckduckgo-search==3.
|
14 |
beautifulsoup4==4.12.2
|
15 |
-
langchain==0.0.
|
16 |
lxml==4.9.3
|
17 |
requests==2.31.0
|
18 |
protobuf==4.25.1
|
19 |
-
|
20 |
selenium==4.15.2
|
21 |
webdriver-manager==4.0.1
|
22 |
-
aiohttp==3.
|
|
|
23 |
python-whois==0.8.0
|
24 |
-
geopy==2.4.1
|
25 |
-
httpx==0.24.1
|
26 |
googlesearch-python==1.2.3
|
27 |
-
|
28 |
-
waybackpy==3.0.6
|
|
|
2 |
torch==2.0.1+cpu
|
3 |
torchvision==0.15.2+cpu
|
4 |
torchaudio==2.0.2+cpu
|
5 |
+
transformers==4.35.2
|
6 |
numpy>=1.23.5
|
7 |
scikit-learn>=1.2.2
|
8 |
scipy>=1.10.1
|
9 |
nltk>=3.8.1
|
10 |
+
sentence-transformers>=2.2.2
|
11 |
tqdm>=4.65.0
|
12 |
+
gradio==4.14.0
|
13 |
+
duckduckgo-search==3.9.3
|
14 |
beautifulsoup4==4.12.2
|
15 |
+
langchain==0.0.335
|
16 |
lxml==4.9.3
|
17 |
requests==2.31.0
|
18 |
protobuf==4.25.1
|
19 |
+
pillow==10.1.0
|
20 |
selenium==4.15.2
|
21 |
webdriver-manager==4.0.1
|
22 |
+
aiohttp==3.9.1
|
23 |
+
httpx==0.25.2
|
24 |
python-whois==0.8.0
|
|
|
|
|
25 |
googlesearch-python==1.2.3
|
26 |
+
exifread==3.0.0
|
|