title: Can't retrieve file name from a mega link
body: <p>I have been trying to scrape info from mega links, I used BeautifulSoup and was able to retrieve file sizes and folder counts (mostly but not everytime though). But for some reason I don't quite understand, the output does not include file or folder names. I am trying to retrieve the name of main folder and the code I tried is as follows:</p>
  <pre><code>from bs4 import BeautifulSoup
  link=&quot;MEGALINK&quot;
  url = f&quot;{link}&quot;   
  page = urlopen(url)
  page=page.read()
  html = page.decode(&quot;utf-8&quot;)
  soup = BeautifulSoup(html, &quot;html.parser&quot;)
  soup
  </code></pre>
  <p>I also looked for mega.py library but don't think it is of any use...</p>