title: Python web-scraping on a multi-layered website without [href]
body: <p>I am looking for a way to scrape data from the student-accomodation website uniplaces: <a href="https://www.uniplaces.com/en/accommodation/berlin" rel="nofollow noreferrer">https://www.uniplaces.com/en/accommodation/berlin</a>.</p>
  
  <p>In the end, I would like to scrape particular information for each property, such as bedroom size, number of roommates, location. In order to do this, I will first have to scrape all property links and then scrape the individual links afterwards.</p>
  
  <p>However, even after going through the console and using BeautifulSoup for the extraction of urls, I was not able to extract the urls leading to the separate listings. They don't seem to be included as a [href] and I wasn't able to identify the links in any other format within the html code. </p>
  
  <p>This is the python code I used but it also didn't return anything:
      from bs4 import BeautifulSoup
      import urllib.request</p>
  
  <pre><code>resp = urllib.request.urlopen("https://www.uniplaces.com/accommodation/lisbon")
  soup = BeautifulSoup(resp, from_encoding=resp.info().get_param('charset'))
  
  for link in soup.find_all('a', href=True):
      print(link['href'])
  </code></pre>
  
  <p>So my question is: If links are not included in http:// format or referenced as [href]: is there any way to extract the listings urls?</p>
  
  <p>I would really highly appreciate any support on this!</p>
  
  <p>All the best,
  Hannah</p>