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 0d7e2f4 commit 63bea64Copy full SHA for 63bea64
automaticwebsiteurlscraper.py/webUrlscraper.py
@@ -5,7 +5,7 @@
5
from urllib.request import urlopen, Request
6
from bs4 import BeautifulSoup
7
8
-ctx = ssl.create_default_context( )
+ctx = ssl.create_default_context()
9
ctx.check_hostname = False
10
ctx.verify_mode = ssl.CERT_NONE
11
@@ -26,8 +26,8 @@
26
if 'href' in str(link) :
27
templist = str(link).split("href")
28
index1 = templist[-1].index("\"")
29
- index2 = templist[-1][index1 + 1 :].index( "\"" )
30
- finalLinks.append(templist[-1][index1 : index2 + 3])
+ index2 = templist[-1][index1 + 1 : ].index( "\"" )
+ finalLinks.append(templist[-1] [index1 : index2 + 3 ] )
31
print("Here are your final links")
32
# printing the final completed list
33
for i in finalLinks :
0 commit comments