File download from website

  • Hi guys

    I recently completed a package to download files from an ftp site but at the moment i have a new task.

    Downloading files from a website, the website doesnt contain actual links to the files tho. It contains a kind of tree like node and after a couple of clicks of a + sign u drop down to the actual zip file. I think they use a javascript onclick event to download the file when you click on it.

    How do i create a package to logon to the website and navigate through those nodes to download the actual files?

  • It does sound like Web Scraping requirement (absolutely Front End).

    Per my understanding you can't handle this requirement until you get the final URL for the files.

  • When i use Opera browser and right click inspect element i see this javascript for the file download

    <span onmouseover="style.cursor='hand'" onmouseout="style.cursor='default'" style="text-align: left; cursor:

    default" valign="bottom" title="7020905001.DWI7-02.zip"

    onclick="download('|Provincial|09|05|7020905001|2011|May|DWI7|7020905001.DWI7-02.zip','getfile.aspx');">

    is there no way i can use this somehow?

  • You then need to find the javascript code called download and reverse engineer what it does.

    From that you have a shot @ getting the correct & final url.

  • You then need to find the javascript code called download and reverse engineer what it does.

    From that you have a shot @ getting the correct & final url.

    Does he suppose to do that? (Assuming he / she is Database Developer / DBA)

  • Dev @ +91 973 913 6683 (10/19/2011)


    You then need to find the javascript code called download and reverse engineer what it does.

    From that you have a shot @ getting the correct & final url.

    Does he suppose to do that? (Assuming he / she is Database Developer / DBA)

    View source.

    Plan b would be to save the page and all embeded files and upload here so I can investigate.

  • just saved the web page now but when i try to upload it here it says im not allowed to because of the file type mht

  • Save as native html + all the files separately.

    Then try mailing it to use if the upload to the message boards doesn't work.

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply