Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- from bs4 import BeautifulSoup
- import os
- url = 'https://www.selectedvendors.com/Goods/categoryGoodsList/53/Cabinets'
- r = requests.get(url)
- soup = BeautifulSoup(r.text, 'html.parser')
- pees = soup.find_all('p')
- print(pees)
- for link in soup
- images = soup.find_all('img')
- #print(images)
- #num = 0
- # for image in images:
- #if 'http' in image.get('src'):
- #link = image['src']
- #with open(str(num) + 'jpg', 'wb') as f:
- #im = requests.get(link)
- #f.write(im.content)
- #num += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement