Overclock.net › Forums › Software, Programming and Coding › Networking & Security › How to find out download link ?
New Posts  All Forums:Forum Nav:

How to find out download link ?

post #1 of 11
Thread Starter 
Hello Guys,

I download a file containing stock market data from a website. Basically I open the webpage and there is a link View in Excel (top most right) and when I click on it the browser asks me to where to save the file.

After the file is saved I can view it. It is a csv file and is generated every day. So the filename is specific to a date.

I want to write a program that can download the file automatically but I am unable to determine the download link. I tried to check this using IE and DAP but the download link appears as the webpage name. Plus its unable to download through DAP.

Can you guys determine download link or tell me how can I do it otherwise I have to manually do it everyday.

The site address is : http://www.mcxindia.com/SitePages/BhavCopyDateWise.aspx

Here click on view in excel (topmost right) allows us to save file to our system.

Thank you,

Cheers,
GR
Powerhouse
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core 2 Duo 3GHZ Gigabyte EP45 UD3L Leadtek GTX 275 4 GB DDR2 
Hard DriveOSMonitorPower
1 TB Windows XP Dell 22" Coolermaster 600Watt 
  hide details  
Reply
Powerhouse
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core 2 Duo 3GHZ Gigabyte EP45 UD3L Leadtek GTX 275 4 GB DDR2 
Hard DriveOSMonitorPower
1 TB Windows XP Dell 22" Coolermaster 600Watt 
  hide details  
Reply
post #2 of 11

In Firefox, you can just right-click the file in the built-in Downloads window and choose the option to copy the address ("Copy Download Link"). I don't know if it can be done in IE or if it can be done in Chrome or any other browser, but I know that it can be done in Firefox. Firefox is free and small, so it might be worth it just to use for that if you'd much rather use IE.

 

However, all I get with THIS page is this:

 

http://www.mcxindia.com/SitePages/BhavCopyDateWise.aspx

It's a computer!
(19 items)
 
  
CPUMotherboardGraphicsRAM
i5-2500K @ 4.5GHz (1.368-1.384V fixed voltage) ASUS P8P67 EVO B3 (UEFI ver. 1850) GTX 780 ASUS DirectCU II (1228 / 6300, 1.180V) G.SKILL Ripjaws X 8GB (2 x 4GB) 1866MHz, CL9 
Hard DriveHard DriveHard DriveOptical Drive
250 GB Samsung 840 EVO (C:\) 250 GB Samsung 840 EVO (D:\) 150 GB WD VelociRaptor Samsung SH-S243N 24x DVD Burner 
Optical DriveCoolingOSMonitor
Samsung SH-S203N 20X DVD Burner Thermaltake Frio Win 7 Home Premium x64 SP1 Retail AOC G2460PG (24" 1920 x 1080 144Hz G-SYNC) 
KeyboardPowerCaseMouse
Filco Majestouch 104-key Cherry MX Blues w/NKRO Corsair HX650 (Bronze, ordered on 12-12-2009) CM 690 Intellimouse Optical (1.1A) 1000Hz polling rate 
Mouse PadAudioAudio
Basic, but premium round X-Fi Titanium HD Klipsch ProMedia 2.1 (with 16 AWG Monster Cable... 
  hide details  
Reply
It's a computer!
(19 items)
 
  
CPUMotherboardGraphicsRAM
i5-2500K @ 4.5GHz (1.368-1.384V fixed voltage) ASUS P8P67 EVO B3 (UEFI ver. 1850) GTX 780 ASUS DirectCU II (1228 / 6300, 1.180V) G.SKILL Ripjaws X 8GB (2 x 4GB) 1866MHz, CL9 
Hard DriveHard DriveHard DriveOptical Drive
250 GB Samsung 840 EVO (C:\) 250 GB Samsung 840 EVO (D:\) 150 GB WD VelociRaptor Samsung SH-S243N 24x DVD Burner 
Optical DriveCoolingOSMonitor
Samsung SH-S203N 20X DVD Burner Thermaltake Frio Win 7 Home Premium x64 SP1 Retail AOC G2460PG (24" 1920 x 1080 144Hz G-SYNC) 
KeyboardPowerCaseMouse
Filco Majestouch 104-key Cherry MX Blues w/NKRO Corsair HX650 (Bronze, ordered on 12-12-2009) CM 690 Intellimouse Optical (1.1A) 1000Hz polling rate 
Mouse PadAudioAudio
Basic, but premium round X-Fi Titanium HD Klipsch ProMedia 2.1 (with 16 AWG Monster Cable... 
  hide details  
Reply
post #3 of 11
Thread Starter 
Quote:
Originally Posted by TwoCables View Post

In Firefox, you can just right-click the file in the built-in Downloads window and choose the option to copy the address ("Copy Download Link"). I don't know if it can be done in IE or if it can be done in Chrome or any other browser, but I know that it can be done in Firefox. Firefox is free and small, so it might be worth it just to use for that if you'd much rather use IE.

However, all I get with THIS page is this:

http://www.mcxindia.com/SitePages/BhavCopyDateWise.aspx

Thanks for your reply but you didn't read my post properly. I did do that in firefox or IE and the download link I am getting is : http://www.mcxindia.com/SitePages/BhavCopyDateWise.aspx and not the direct link to the file which I can use it to download the file straight away.
Powerhouse
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core 2 Duo 3GHZ Gigabyte EP45 UD3L Leadtek GTX 275 4 GB DDR2 
Hard DriveOSMonitorPower
1 TB Windows XP Dell 22" Coolermaster 600Watt 
  hide details  
Reply
Powerhouse
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core 2 Duo 3GHZ Gigabyte EP45 UD3L Leadtek GTX 275 4 GB DDR2 
Hard DriveOSMonitorPower
1 TB Windows XP Dell 22" Coolermaster 600Watt 
  hide details  
Reply
post #4 of 11

Sigh. I don't know if I want to reply again after being snapped at. Good luck.

It's a computer!
(19 items)
 
  
CPUMotherboardGraphicsRAM
i5-2500K @ 4.5GHz (1.368-1.384V fixed voltage) ASUS P8P67 EVO B3 (UEFI ver. 1850) GTX 780 ASUS DirectCU II (1228 / 6300, 1.180V) G.SKILL Ripjaws X 8GB (2 x 4GB) 1866MHz, CL9 
Hard DriveHard DriveHard DriveOptical Drive
250 GB Samsung 840 EVO (C:\) 250 GB Samsung 840 EVO (D:\) 150 GB WD VelociRaptor Samsung SH-S243N 24x DVD Burner 
Optical DriveCoolingOSMonitor
Samsung SH-S203N 20X DVD Burner Thermaltake Frio Win 7 Home Premium x64 SP1 Retail AOC G2460PG (24" 1920 x 1080 144Hz G-SYNC) 
KeyboardPowerCaseMouse
Filco Majestouch 104-key Cherry MX Blues w/NKRO Corsair HX650 (Bronze, ordered on 12-12-2009) CM 690 Intellimouse Optical (1.1A) 1000Hz polling rate 
Mouse PadAudioAudio
Basic, but premium round X-Fi Titanium HD Klipsch ProMedia 2.1 (with 16 AWG Monster Cable... 
  hide details  
Reply
It's a computer!
(19 items)
 
  
CPUMotherboardGraphicsRAM
i5-2500K @ 4.5GHz (1.368-1.384V fixed voltage) ASUS P8P67 EVO B3 (UEFI ver. 1850) GTX 780 ASUS DirectCU II (1228 / 6300, 1.180V) G.SKILL Ripjaws X 8GB (2 x 4GB) 1866MHz, CL9 
Hard DriveHard DriveHard DriveOptical Drive
250 GB Samsung 840 EVO (C:\) 250 GB Samsung 840 EVO (D:\) 150 GB WD VelociRaptor Samsung SH-S243N 24x DVD Burner 
Optical DriveCoolingOSMonitor
Samsung SH-S203N 20X DVD Burner Thermaltake Frio Win 7 Home Premium x64 SP1 Retail AOC G2460PG (24" 1920 x 1080 144Hz G-SYNC) 
KeyboardPowerCaseMouse
Filco Majestouch 104-key Cherry MX Blues w/NKRO Corsair HX650 (Bronze, ordered on 12-12-2009) CM 690 Intellimouse Optical (1.1A) 1000Hz polling rate 
Mouse PadAudioAudio
Basic, but premium round X-Fi Titanium HD Klipsch ProMedia 2.1 (with 16 AWG Monster Cable... 
  hide details  
Reply
post #5 of 11
Thread Starter 
Quote:
Originally Posted by TwoCables View Post

Sigh. I don't know if I want to reply again after being snapped at. Good luck.

Wow, I did say thanks for your effort but pointed out a problem. Is that being snapped at ?? exclamation.gif
Powerhouse
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core 2 Duo 3GHZ Gigabyte EP45 UD3L Leadtek GTX 275 4 GB DDR2 
Hard DriveOSMonitorPower
1 TB Windows XP Dell 22" Coolermaster 600Watt 
  hide details  
Reply
Powerhouse
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core 2 Duo 3GHZ Gigabyte EP45 UD3L Leadtek GTX 275 4 GB DDR2 
Hard DriveOSMonitorPower
1 TB Windows XP Dell 22" Coolermaster 600Watt 
  hide details  
Reply
post #6 of 11
Quote:
Originally Posted by greatchap View Post


Wow, I did say thanks for your effort but pointed out a problem. Is that being snapped at ?? exclamation.gif

 

"but you didn't read my post properly."

 

I was only trying to help. Y'know? I don't need that when all I'm trying to do is help. You didn't have to even go there.

It's a computer!
(19 items)
 
  
CPUMotherboardGraphicsRAM
i5-2500K @ 4.5GHz (1.368-1.384V fixed voltage) ASUS P8P67 EVO B3 (UEFI ver. 1850) GTX 780 ASUS DirectCU II (1228 / 6300, 1.180V) G.SKILL Ripjaws X 8GB (2 x 4GB) 1866MHz, CL9 
Hard DriveHard DriveHard DriveOptical Drive
250 GB Samsung 840 EVO (C:\) 250 GB Samsung 840 EVO (D:\) 150 GB WD VelociRaptor Samsung SH-S243N 24x DVD Burner 
Optical DriveCoolingOSMonitor
Samsung SH-S203N 20X DVD Burner Thermaltake Frio Win 7 Home Premium x64 SP1 Retail AOC G2460PG (24" 1920 x 1080 144Hz G-SYNC) 
KeyboardPowerCaseMouse
Filco Majestouch 104-key Cherry MX Blues w/NKRO Corsair HX650 (Bronze, ordered on 12-12-2009) CM 690 Intellimouse Optical (1.1A) 1000Hz polling rate 
Mouse PadAudioAudio
Basic, but premium round X-Fi Titanium HD Klipsch ProMedia 2.1 (with 16 AWG Monster Cable... 
  hide details  
Reply
It's a computer!
(19 items)
 
  
CPUMotherboardGraphicsRAM
i5-2500K @ 4.5GHz (1.368-1.384V fixed voltage) ASUS P8P67 EVO B3 (UEFI ver. 1850) GTX 780 ASUS DirectCU II (1228 / 6300, 1.180V) G.SKILL Ripjaws X 8GB (2 x 4GB) 1866MHz, CL9 
Hard DriveHard DriveHard DriveOptical Drive
250 GB Samsung 840 EVO (C:\) 250 GB Samsung 840 EVO (D:\) 150 GB WD VelociRaptor Samsung SH-S243N 24x DVD Burner 
Optical DriveCoolingOSMonitor
Samsung SH-S203N 20X DVD Burner Thermaltake Frio Win 7 Home Premium x64 SP1 Retail AOC G2460PG (24" 1920 x 1080 144Hz G-SYNC) 
KeyboardPowerCaseMouse
Filco Majestouch 104-key Cherry MX Blues w/NKRO Corsair HX650 (Bronze, ordered on 12-12-2009) CM 690 Intellimouse Optical (1.1A) 1000Hz polling rate 
Mouse PadAudioAudio
Basic, but premium round X-Fi Titanium HD Klipsch ProMedia 2.1 (with 16 AWG Monster Cable... 
  hide details  
Reply
post #7 of 11
Thread Starter 
Quote:
Originally Posted by TwoCables View Post

"but you didn't read my post properly."

I was only trying to help. Y'know? I don't need that when all I'm trying to do is help. You didn't have to even go there.

Well to be honest there is no offence in that. It is basically same as pointing out a problem, in this case that you either misunderstood what I read or didn't read the post. I do not see any reason for you to feel I was impolite. Plus I at least thanked you for your effort.
Powerhouse
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core 2 Duo 3GHZ Gigabyte EP45 UD3L Leadtek GTX 275 4 GB DDR2 
Hard DriveOSMonitorPower
1 TB Windows XP Dell 22" Coolermaster 600Watt 
  hide details  
Reply
Powerhouse
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core 2 Duo 3GHZ Gigabyte EP45 UD3L Leadtek GTX 275 4 GB DDR2 
Hard DriveOSMonitorPower
1 TB Windows XP Dell 22" Coolermaster 600Watt 
  hide details  
Reply
post #8 of 11
You'd most likely have to call the function:

__doPostBack('btnLink_Excel','')

from a webbrowser control or something.

C# example:
Code:

webBrowser.Navigate("http://www.mcxindia.com/SitePages/BhavCopyDateWise.aspx");
            webBrowser.DocumentCompleted += (sender, args) =>
            {
               webBrowser.Document.InvokeScript("__doPostBack", new object[]{"btnLink_Excel", ""});
            };


or you could scour throught the sources and figure out how they do it.

__doPostBack function
Code:

var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}

Haswell
(21 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 4770K @ 4Ghz Gigabyte Z87X-UD5H Sapphire Radeon R9 290 Vapor-X G.Skill RipjawsZ 4x4GB 2400Mhz 
Hard DriveHard DriveHard DriveHard Drive
Crucial M4 126GB Crucial MX100 4x512GB WD Caviar Green EZRX Crucial M500 120GB 
Optical DriveCoolingOSMonitor
Samsung DVD Corsair Hydro H105 Windows 7 Ultimate Acer B276HK 
MonitorMonitorKeyboardPower
Dell P2314H Samsung SA700 Logitech G710+ Seasonic P-660 XP2 
CaseMouseMouse PadAudio
Fractal Design Arc Midi R2 Razer Deathadder 2013 Mionix Sargas 900 Asus Xonar DX/XD 
Audio
Beyerdynamics Custome One Pro White 
  hide details  
Reply
Haswell
(21 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 4770K @ 4Ghz Gigabyte Z87X-UD5H Sapphire Radeon R9 290 Vapor-X G.Skill RipjawsZ 4x4GB 2400Mhz 
Hard DriveHard DriveHard DriveHard Drive
Crucial M4 126GB Crucial MX100 4x512GB WD Caviar Green EZRX Crucial M500 120GB 
Optical DriveCoolingOSMonitor
Samsung DVD Corsair Hydro H105 Windows 7 Ultimate Acer B276HK 
MonitorMonitorKeyboardPower
Dell P2314H Samsung SA700 Logitech G710+ Seasonic P-660 XP2 
CaseMouseMouse PadAudio
Fractal Design Arc Midi R2 Razer Deathadder 2013 Mionix Sargas 900 Asus Xonar DX/XD 
Audio
Beyerdynamics Custome One Pro White 
  hide details  
Reply
post #9 of 11
Thread Starter 
Quote:
Originally Posted by Jiiks View Post

You'd most likely have to call the function:

__doPostBack('btnLink_Excel','')

from a webbrowser control or something.

C# example:
Code:

webBrowser.Navigate("http://www.mcxindia.com/SitePages/BhavCopyDateWise.aspx");
            webBrowser.DocumentCompleted += (sender, args) =>
            {
               webBrowser.Document.InvokeScript("__doPostBack", new object[]{"btnLink_Excel", ""});
            };


or you could scour throught the sources and figure out how they do it.

__doPostBack function
Code:

var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}


Thanks a ton buddy. The function in web browser document complete did the trick. Now a save file dialog box opens. Some process for sure but is it possible to automate the save file thing.
Powerhouse
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core 2 Duo 3GHZ Gigabyte EP45 UD3L Leadtek GTX 275 4 GB DDR2 
Hard DriveOSMonitorPower
1 TB Windows XP Dell 22" Coolermaster 600Watt 
  hide details  
Reply
Powerhouse
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core 2 Duo 3GHZ Gigabyte EP45 UD3L Leadtek GTX 275 4 GB DDR2 
Hard DriveOSMonitorPower
1 TB Windows XP Dell 22" Coolermaster 600Watt 
  hide details  
Reply
post #10 of 11
I'm afraid it's not possible with the default control since the function is not a navigate event.
Haswell
(21 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 4770K @ 4Ghz Gigabyte Z87X-UD5H Sapphire Radeon R9 290 Vapor-X G.Skill RipjawsZ 4x4GB 2400Mhz 
Hard DriveHard DriveHard DriveHard Drive
Crucial M4 126GB Crucial MX100 4x512GB WD Caviar Green EZRX Crucial M500 120GB 
Optical DriveCoolingOSMonitor
Samsung DVD Corsair Hydro H105 Windows 7 Ultimate Acer B276HK 
MonitorMonitorKeyboardPower
Dell P2314H Samsung SA700 Logitech G710+ Seasonic P-660 XP2 
CaseMouseMouse PadAudio
Fractal Design Arc Midi R2 Razer Deathadder 2013 Mionix Sargas 900 Asus Xonar DX/XD 
Audio
Beyerdynamics Custome One Pro White 
  hide details  
Reply
Haswell
(21 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 4770K @ 4Ghz Gigabyte Z87X-UD5H Sapphire Radeon R9 290 Vapor-X G.Skill RipjawsZ 4x4GB 2400Mhz 
Hard DriveHard DriveHard DriveHard Drive
Crucial M4 126GB Crucial MX100 4x512GB WD Caviar Green EZRX Crucial M500 120GB 
Optical DriveCoolingOSMonitor
Samsung DVD Corsair Hydro H105 Windows 7 Ultimate Acer B276HK 
MonitorMonitorKeyboardPower
Dell P2314H Samsung SA700 Logitech G710+ Seasonic P-660 XP2 
CaseMouseMouse PadAudio
Fractal Design Arc Midi R2 Razer Deathadder 2013 Mionix Sargas 900 Asus Xonar DX/XD 
Audio
Beyerdynamics Custome One Pro White 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › How to find out download link ?