Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for a in soup.find_all('a', href=True):
- print "Found the URL:", a['href']
- from bs4 import BeautifulSoup
- import requests
- import re
- url = requests.get("https://8ch.net/a/res/869528.html")
- soup = BeautifulSoup(url.text,"html.parser")
- print soup
- for a in soup.find_all(re.compile('([-w]+.(?:jpg|jpeg|png))') ):#'a', href=True):
- print "Found the URL:", a #['href']
Add Comment
Please, Sign In to add comment