Advertisement
Guest User

Untitled

a guest
Feb 14th, 2017
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import requests
  2. from bs4 import BeautifulSoup
  3.  
  4. r = requests.get('http://dota.reactor.cc/tag/Dota%2BArt/new/649')
  5. content = r.content
  6. soup = BeautifulSoup(content, 'html.parser')
  7. response = soup.find_all("a", attrs={"class": "prettyPhotoLink"})
  8.  
  9. for item in response:
  10. print item.select('img')[0].get('src')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement