sahanind commited on
Commit
7f560d1
·
verified ·
1 Parent(s): eb0cfd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -34
app.py CHANGED
@@ -1,37 +1,7 @@
1
  import subprocess
2
 
3
- # List of proxies
4
- proxies = [
5
- # "130.61.171.71",
6
- # "117.54.114.33",
7
- "8.219.97.248:80"
8
-
9
-
10
 
11
- # Add more proxies as needed
12
- ]
13
-
14
- # URL to download
15
- url = "http://zoom.lk"
16
-
17
- # Generate and execute wget commands
18
- for proxy in proxies:
19
- command = ['wget','--timeout=3', '-e', 'use_proxy=yes', '-e', f'http_proxy=http://{proxy}', url]
20
-
21
- # Print the command
22
- print(f"Running command: {' '.join(command)}")
23
-
24
- # Execute the command and capture output live
25
- process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
26
-
27
- while True:
28
- output = process.stdout.readline()
29
- if output == b'' and process.poll() is not None:
30
- break
31
- if output:
32
- print(output.decode().strip())
33
-
34
- # Capture any error messages
35
- stderr_output = process.stderr.read()
36
- if stderr_output:
37
- print(stderr_output.decode().strip())
 
1
  import subprocess
2
 
3
+ # Download Google Chrome
4
+ subprocess.run(['wget', 'https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb'])
 
 
 
 
 
5
 
6
+ # Install Google Chrome
7
+ subprocess.run(['apt', 'install', './google-chrome-stable_current_amd64.deb'])