Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,17 +3,6 @@ import requests
|
|
3 |
from telebot import apihelper
|
4 |
import subprocess
|
5 |
|
6 |
-
# Install Tor
|
7 |
-
subprocess.run(["sudo", "apt", "install", "tor"])
|
8 |
-
|
9 |
-
# Install Privoxy and Torsocks
|
10 |
-
subprocess.run(["sudo", "apt", "install", "privoxy", "torsocks"])
|
11 |
-
|
12 |
-
# Configure Privoxy
|
13 |
-
subprocess.run(["sudo", "sed", "-i", "s/#forward-socks5t/forward-socks5t/", "/etc/privoxy/config"])
|
14 |
-
|
15 |
-
# Install PySocks
|
16 |
-
subprocess.run(["pip", "install", "pysocks"])
|
17 |
|
18 |
# Set up the proxy
|
19 |
apihelper.proxy = {'https': 'socks5h://127.0.0.1:9050'}
|
|
|
3 |
from telebot import apihelper
|
4 |
import subprocess
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
# Set up the proxy
|
8 |
apihelper.proxy = {'https': 'socks5h://127.0.0.1:9050'}
|