brotee commited on
Commit
5398709
Β·
verified Β·
1 Parent(s): 97119f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -3,6 +3,13 @@ import requests
3
  from bs4 import BeautifulSoup
4
  from urllib.parse import urljoin
5
 
 
 
 
 
 
 
 
6
 
7
  def google_search(query):
8
  """
 
3
  from bs4 import BeautifulSoup
4
  from urllib.parse import urljoin
5
 
6
+ import os
7
+ import subprocess
8
+
9
+ def install(package):
10
+ subprocess.check_call([os.sys.executable, "-m", "pip", "install", package])
11
+
12
+ install("bs4")
13
 
14
  def google_search(query):
15
  """