title: Download files directly from the website member.bseindia.com
body: <p>I am trying to download from this link <a href="https://member.bseindia.com/" rel="nofollow noreferrer">member.bseindia</a> from the folder</p>
  
  <blockquote>
    <p>CURRENCY > COMMON > DEC-2018 > 21-12-2018</p>
  </blockquote>
  
  <p>these files:</p>
  
  <blockquote>
    <p>BFX_CO211218.csv<br> BFX_DP211218<br> BFX_SPD_CO211218.csv<br>
    BFX_SPD_CO211218.csv<br></p>
  </blockquote>
  
  <p>This is a grid and I am not able to inject code into PHP script to download them directly.</p>
  
  <p>I have tried using javascript auto-click but again I was stuck. I have even tried python mouse events, but they did not work.</p>
  
  <p>This is sample code of file which I can download directly using the following PHP code:</p>
  
  <pre><code>&lt;?php
  $exists = remoteFileExists('https://www.bseindia.com/download/BhavCopy/Equity/EQ'.
      $date.$month2.$year2.'_CSV.ZIP'); 
  
  $url='https://www.bseindia.com/download/BhavCopy/Equity/EQ'.
      $date.$month2.$year2.'_CSV.ZIP';
  if ($exists) {
      echo 'EQ'.$date.$month2.$year2.'_CSV.ZIP Downloaded'. "&lt;br/&gt;";
      $filename='EQ'.$date.$month2.$year2.'_CSV.ZIP';
      download($url,$filename);
  } else {
      echo 'EQ'.$date.$month2.$year2.'_CSV.ZIP does not exists'. "&lt;br/&gt;";   
  }
  </code></pre>