Jump to content

Recommended Posts

Posted

Hello I have a question. I am trying to download set of files in IE using InetGet to download them:

On the website the url to download is:

https://www.sitenamehere.com/Download/Solid-Blue-Theme

But whenever I used that url with InetGet the file it downloaded is a 50-60k file. The file that downloads is corrupted / won't open.  If I manually click on the download link and look at the download URL in IE it looks like:

https://downloads.sitenamehere.com/1/1060/1060405/1471022748_original_blue_theme_v2.pdf?CuL76J813d59M63Tzj4hasfwMK4B_H7uHqT0F6vEZ2VQxcQy_LFh_AHe7Zzu2U6z&file_name=SolidBlueTheme.pdf

Is there anything I can do to download the second url / find out what the second url is? I've got about 800 files to download and the url is different for every one of them.  I have been using sleep and using tabs / keystrokes to use the IE download popup at the bottom of the page, but that doesn't work consistently 100% of the time.

Any help would be greatly appreciated.  
 

Posted

For 800 files, maybe download the whole domain. Else, scan every page for the download button and click it, move to next page and so on.

 

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Posted
23 hours ago, careca said:

For 800 files, maybe download the whole domain. Else, scan every page for the download button and click it, move to next page and so on.

 

There are hundreds of thousands of pages, it would be like downloading eBay. I have a list of URL of the pages I need to download from.  I've been trying to do the download button, but it skips files every once in a while.   

Here is the url for the download page:

https://www.teacherspayteachers.com/Product/Gamification-Assessments-3465703

 

Posted

Seems to be you need credentials/cookies for this. Probably you can handle using WinHttp UDF or curl(commandline) or UDF.


Saludos

Posted

before the firefox update i'd use mozrepl and the firefox udf, but now, im not sure.

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Posted (edited)

Hi @BrianTheLibrarian.

Your question is more JS related than AutoIt.

The page https://www.teacherspayteachers.com/Product/Gamification-Assessments-3465703

contains the download button with the url: https://www.teacherspayteachers.com/FreeDownload/Gamification-Assessments-3465703

that page loads the script: https://static-assets.teacherspayteachers.com/js-min/customer/items/free_download.js?rand=1515580196 and one of the last lines contains: window.location=cfg.free_download.link

if you open the developer console in the browser of your coosing on page: https://www.teacherspayteachers.com/FreeDownload/Gamification-Assessments-3465703 and run the line cfg.free_download.link you will get the link: https://www.teacherspayteachers.com/Download/Classroom-Gamification-Assessments-3465703 that link will send status code 302 Moved Temporarily and send your browser to the link: https://downloads.teacherspayteachers.com/3/3465/3465703/fd8841b303a3705d56cfedd3278bc561?Sqio3qRJOWKrNllCbXeE-OD38_Djua8yrcAaEERXJKCnVRtrNT74JYbXn5TsTYIX&file_name=GamificationAssessments.pdf

So you can either get the JS variable from the download site, or just take the URL https://www.teacherspayteachers.com/Download/<The string after /FreeDownload/ on first link> if it works as i think.

Edited by genius257

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...