Skip to content

Commit 63bea64

Browse files
committed
update .py
1 parent 0d7e2f4 commit 63bea64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

automaticwebsiteurlscraper.py/webUrlscraper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from urllib.request import urlopen, Request
66
from bs4 import BeautifulSoup
77

8-
ctx = ssl.create_default_context( )
8+
ctx = ssl.create_default_context()
99
ctx.check_hostname = False
1010
ctx.verify_mode = ssl.CERT_NONE
1111

@@ -26,8 +26,8 @@
2626
if 'href' in str(link) :
2727
templist = str(link).split("href")
2828
index1 = templist[-1].index("\"")
29-
index2 = templist[-1][index1 + 1 :].index( "\"" )
30-
finalLinks.append(templist[-1][index1 : index2 + 3])
29+
index2 = templist[-1][index1 + 1 : ].index( "\"" )
30+
finalLinks.append(templist[-1] [index1 : index2 + 3 ] )
3131
print("Here are your final links")
3232
# printing the final completed list
3333
for i in finalLinks :

0 commit comments

Comments
 (0)