Skip to content

Commit 28d93b9

Browse files
authored
Update raspamb.py
1 parent 3b6c981 commit 28d93b9

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

raspamb.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,37 @@
1+
import platform
2+
import os
3+
import re
4+
5+
try:
6+
import requests
7+
except:
8+
try:
9+
os.system("pip install requests")
10+
except:
11+
os.system("sudo pip install requests")
112
try:
213
from bs4 import BeautifulSoup
314
except:
415
try:
516
os.system("pip install bs4")
17+
from bs4 import BeautifulSoup
618
except:
719
os.system("sudo pip install bs4")
20+
from bs4 import BeautifulSoup
821

922
try:
1023
from selenium import webdriver
1124
except:
1225
try:
1326
os.system("pip install selenium")
27+
from selenium import webdriver
1428
except:
1529
os.system("sudo pip install selenium")
30+
from selenium import webdriver
1631

1732
from urllib.request import urlopen
1833
from selenium.common.exceptions import WebDriverException
19-
import platform
20-
import requests
21-
import os
22-
import re
34+
2335

2436

2537
def drive_download():

0 commit comments

Comments
 (0)