We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87d8e4d commit ffae454Copy full SHA for ffae454
automaticwebsiteurlscraper.py/webUrlscraper.py
@@ -13,14 +13,14 @@
13
Url = input("Enter your Urllink")
14
try :
15
# trying to access the page
16
- page = Request(Url, headers={'User-Agent':'Mozilla/5.0'})
+ page = Request(Url, headers={'User-Agent': 'Mozilla/5.0'})
17
page = urlopen(page, context=ctx).read()
18
# Using beautifulsoup to read the contents of the page
19
soup = BeautifulSoup(page, 'html.parser')
20
# finding all the link headers
21
links = soup.findAll('a')
22
if(links is not None) :
23
- finalLinks = [ ]
+ finalLinks = []
24
# getting actual site links from the header a
25
for link in links :
26
if 'href' in str(link) :
0 commit comments