Solved

Extract link for file from web page

Posted on 2016-08-05
6
43 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 8

Expert Comment

by:Antzs
ID: 41743985
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
ID: 41744002
Unfortunatelly status bar shows nothing when I hover mouse over file
Any advice?
0
 
LVL 35

Expert Comment

by:Kimputer
ID: 41744143
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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

Author Comment

by:vladobb
ID: 41744450
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
ID: 41744490
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
ID: 41745159
Thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

738 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