Solved

Extract link for file from web page

Posted on 2016-08-05
6
31 Views
Last Modified: 2016-08-05
Dear Experts

I am new to this topic, I have web page listing files, see picture 1, when you click on file, it will start download. However when you rightclick on file and clik SaveTargetAs, you will not save final file, but HTML page.

Can you advice me what is link for given file?

Web page code is showed on picture 1.

Many thanks for advice

V

1COMPASS-Network_-Document-Library.html
0
Comment
Question by:vladobb
  • 3
  • 2
6 Comments
 
LVL 5

Expert Comment

by:Antzs
Comment Utility
Can you hover your mouse on the file.  The link to the file should be displayed at the status bar of the browser.
Screen
0
 

Author Comment

by:vladobb
Comment Utility
Unfortunatelly status bar shows nothing when I hover mouse over file
Any advice?
0
 
LVL 35

Expert Comment

by:Kimputer
Comment Utility
You have to FULLY understand the WHOLE CONVERSATION TRAFFIC before you even start attempting to code something in Java.
You are running into this problem because this website is shielded from the normal user. The download HAS TO BE CHECKED that the correct user has access to it. That's why there's a page behind it which serves you the real file after checking your login information.

To fully code it in Java (or any other programs), you have to code the login sequence first, then the correct cookie storage. After that find out what the content is of the links, and finally from the reply of the server (after you request each link seperately), you can finally extract the link for the file (yes, you have to do it one by one).

If you made the Java tag by accident (meaning, you really only want this one link, and you don't intend to start programming), just download the file. In the Downloads tab of your program, the correct direct download link is displayed. However, this link may not work at all for someone else, since it's a protected environment. The direct download link only works for you for only that session. Tomorrow, it will fail (or if you log out).
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:vladobb
Comment Utility
Dear Kimputer

many thanks, my primary aim is to automatically download that single file every day, I do not need to program anything, I mentioned JAVA probably incorrectly, I had a feeling that environment itself was programmed in JAVA? I do not know.

I need simply to automate process of download of that single XLS file you can see on picture. I use software Winadutomation or Automate, I know how to log in automatically, I can switch to correct "folder", but I cannot parse link to file, this is what confused me a lot.

Thanks

V
0
 
LVL 35

Accepted Solution

by:
Kimputer earned 500 total points
Comment Utility
The link is only generated and revealed after you physically click the link. If your automation software can't simulate that, you sadly DO need to resort to programming.
0
 

Author Closing Comment

by:vladobb
Comment Utility
Thanks
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now