Skip to content

Commit e9d87f1

Browse files
authored
Update raspamb.py
1 parent 93ad156 commit e9d87f1

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

raspamb.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
1-
from bs4 import BeautifulSoup
1+
try:
2+
from bs4 import BeautifulSoup
3+
except:
4+
try:
5+
os.system("pip install bs4")
6+
except:
7+
os.system("sudo pip install bs4")
8+
9+
try:
10+
from selenium import webdriver
11+
except:
12+
try:
13+
os.system("pip install selenium")
14+
except:
15+
os.system("sudo pip install selenium")
16+
217
from urllib.request import urlopen
3-
from selenium import webdriver
418
from selenium.common.exceptions import WebDriverException
19+
import requests
520
import os
621
import re
7-
import requests
8-
import os
922

1023

1124
def drive_download():
@@ -298,3 +311,4 @@ def retornar_busca():
298311
driver.get('https://{}{}'.format(picotado[2], zip))
299312

300313
retornar_busca()
314+

0 commit comments

Comments
 (0)