web_scap #1

Merged
v4l3n71n merged 11 commits from web_scap into master 2023-03-07 11:28:15 +00:00
Showing only changes of commit a03489ee21 - Show all commits

View File

@ -9,11 +9,8 @@ page = requests.get("https://www.clarissariviere.com")
if page.status_code == 200:
soup = BeautifulSoup(page.text, 'html.parser')
for anchor in soup.find_all('a'):
print(anchor.get('href', '/'))
#with urllib.request.urlopen('https://www.clarissariviere.com/index.html') as response:
# print(response)
#webpage = response.read()
#soup = BeautifulSoup(webpage, 'html.parser')
#for anchor in soup.find_all('a'):
# print(anchor.get('href', '/'))
ul = soup.find_all("ul", id="listsmooth")
for anchor in ul[0].find_all("a"):
href = anchor.get('href', '/')
if href != "#" and href != "http://www.clarissariviere.com/":
print(href)