Update functions.py
Browse files- functions.py +4 -0
functions.py
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
def scrape_website(url):
|
2 |
try:
|
3 |
# Set the user agent header
|
|
|
1 |
+
from urllib.request import urlopen, Request
|
2 |
+
from urllib.error import URLError
|
3 |
+
from bs4 import BeautifulSoup
|
4 |
+
import re
|
5 |
def scrape_website(url):
|
6 |
try:
|
7 |
# Set the user agent header
|