-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfvp.py
165 lines (131 loc) · 5.53 KB
/
fvp.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
max_num = 10
import time
import os
import requests
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.common.exceptions import WebDriverException
from selenium.webdriver.firefox.options import Options as FirefoxOptions
try:
from googlesearch import search
from flask import Flask, render_template, request
from colorama import Fore, Back, Style, init
except ImportError as e:
print(f"Error importing module: {e}")
print("Please install the required modules using:\n pip install -r requirements.txt")
options = FirefoxOptions()
options.add_argument("--headless")
try:
driver = webdriver.Firefox(options=options)
except WebDriverException as e:
print("Driver webdriver.Firefox not found. Please make sure you have Firefox installed.")
driver_path = input("Enter the path to the Firefox driver (geckodriver): ")
try:
driver = webdriver.Firefox(executable_path=driver_path, options=options)
print("Firefox driver initialized successfully using the provided path.")
except WebDriverException as e:
print("Error initializing Firefox driver with the provided path. Error:", e)
init()
start = time.time()
blank = " "
github = "https://github.com/LincolnKermit/FVP"
app = Flask(__name__, static_folder='static')
keywordfr ="fr"
version ="3.6 (Public Build)"
indexfonction ='"'
anwser ="y"
str(indexfonction)
messageapi ="Fix de l'API sur 118712.fr + Fix des bugs sur le driver firefox ( windows plateform )"
def clear():
if os.name == 'nt':
os.system("cls")
else:
os.system("clear")
def username_finder():
(Fore.MAGENTA + "Username")
print(Style.RESET_ALL)
username=input("username : ")
response = requests.get('https://root-me.org/' + username)
if response.status_code == 200:
print("User found on Root-Me")
print("https://root-me.org/" + username + "\n")
elif response.status_code == 404:
print("User doesn't seems to exist on Root-Me")
response = requests.get('https://github.com/' + username)
if response.status_code == 200:
print("User found on Github")
print("https://github.com/" + username + "\n")
elif response.status_code == 404:
print("User doesn't seems to exist on Github")
input("...")
def namefinder_api():
lastname = input("Last name: ")
city = input("City: ")
# Assuming you have initialized your webdriver (driver) before calling this function
# driver = webdriver.Chrome() # Example: Initializing a Chrome webdriver
driver.get(f"https://www.118712.fr/recherche/auto/{city}/{lastname}")
html = driver.page_source
soup = BeautifulSoup(html, 'html.parser')
articles = soup.find_all('article') # Trouver tous les éléments 'article'
clear()
if not articles:
print("No articles found for the given search criteria.")
return
for article in articles:
address_element = article.find('address', class_='bi_adress txt_md')
if address_element:
address_elements = address_element.find_all('p')
telephone_element = article.find('a', class_='button primary ab_test')
name_element = article.find('h2', class_='h4')
if telephone_element and name_element:
address = ' '.join([line.get_text(strip=True) for line in address_elements])
numero_telephone = telephone_element.find('span', {'class': 'value'}).text.strip()
full_name = name_element.text.strip()
print("\n")
article_id = article.get('id', 'No ID found')
print(f"Details for {article_id}:")
print(f"Full Name: {full_name}")
print(f"Phone number: {numero_telephone}")
print(f"Address: {address}")
print("\n")
else:
print(f"No details found for this article.")
print("\n")
def googlesearch_api():
try:
from googlesearch import search
except ImportError:
print("No module named 'google' found")
query = input("Name to search : ")
for result in search(query, num=10, stop=10, pause=2):
print(result + "\n")
clear()
print("""
███████╗██╗ ██╗██████╗
██╔════╝██║ ██║██╔══██╗
█████╗ ██║ ██║██████╔╝
██╔══╝ ╚██╗ ██╔╝██╔═══╝
██║ ╚████╔╝ ██║
╚═╝ ╚═══╝ ╚═╝
""""")
print(Fore.LIGHTRED_EX + "Bienvenue sur Finder V-Pro Enhanced!")
print(Fore.WHITE + "https://github.com/LincolnKermit/FVP")
print(Fore.BLUE + "Discord : Lincoln#????")
print(Fore.MAGENTA + "Version : " + version )
print(Fore.LIGHTRED_EX + "Message des developpeurs : " + messageapi)
print(Style.RESET_ALL)
print("")
input("Press Enter to launch Finder V-Pro...")
clear()
print("Launched!")
print("1. Google Search \n 2. Username Finder \n 3. Name searcher")
choix = input(Fore.MAGENTA + "Choix de valeur : ")
if choix == "1":
clear()
googlesearch_api()
if choix == "2":
clear()
username_finder()
if choix == "3":
clear()
namefinder_api()