title: Scraping Instagram with BeautifulSoup
body: <p>I'm trying to get a particular string from the "search by tag" in Instagram.
  I'd like to get the url img from here:</p>
  
  <pre><code>&lt;img alt="#yeşil  #manzara #doğa  
  #yayla #nature #naturelovers #adventuretime #adventures #mountainstaries 
  #picture #şehirdenuzak  #tatil #holiday #cow  #potography #view #kütükev 
  #naturelife #animal #amazing  #kar #winter #winteriscomming #mapavr1 #artvin 
  #tulumile #insaatr #tulumci #rize 
  class="_2di5p" sizes="171px" srcset="https://scontent-mxp11.cdninstagram.com/vp/c883e0c4267c003843fafeda255f1329/5A9D3C97/t51.2885-15/s150x150/e15/c0.90.720.720/28154674_2016914221854461_991623208941649920_n.jpg 150w,
  https://scontent-mxp1-1.cdninstagram.com/vp/6a3480f8658b50c691bcc100a96cc6f0/5A9CC9DC/t51.2885-15/s240x240/e15/c0.90.720.720/28154674_2016914221854461_991623208941649920_n.jpg 240w,
  https://scontent-mxp1-1.cdninstagram.com/vp/461c138e15f52420c3fbc075fab027eb/5A9DD808/t51.2885-15/s320x320/e15/c0.90.720.720/28154674_2016914221854461_991623208941649920_n.jpg 320w,
  https://scontent-mxp1-1.cdninstagram.com/vp/ad5d67f1c9ea77d78d145501e73c2ea0/5A9CAF9D/t51.2885-15/s480x480/e15/c0.90.720.720/28154674_2016914221854461_991623208941649920_n.jpg 480w,
  https://scontent-mxp1-1.cdninstagram.com/vp/e0636f79adc1ae53f7321d10fe60f275/5A9CD134/t51.2885-15/s640x640/e15/c0.90.720.720/28154674_2016914221854461_991623208941649920_n.jpg 640w" 
  src="https://scontent-mxp1-1.cdninstagram.com/vp/e0636f79adc1ae53f7321d10fe60f275/5A9CD134/t51.2885-15/s640x640/e15/c0.90.720.720/28154674_2016914221854461_991623208941649920_n.jpg" style=""&gt;
  </code></pre>
  
  <p>so basically I wolud like to get this string (That is the one with 240w at the end):</p>
  
  <pre><code>https://scontent-mxp1-1.cdninstagram.com/vp/6a3480f8658b50c691bcc100a96cc6f0/../n.jpg
  </code></pre>
  
  <p>and I tried writing this code with Python but it doesn't work</p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  request = requests.get("https://www.instagram.com/explore/tags/nature/")
  content = request.content
  soup = BeautifulSoup(content,"html.parser")
  element = soup.find("srcset")
  print(element.text.strip())
  </code></pre>
  
  <p>maybe the real problem is that there are 21 elements like this one in the page
  but to start I'd like to understand how to get that string.</p>
  
  <p>(And, if any of you know a good tutorial or book for bs4 can you tell me?)</p>