Lua script in Splash - direct file download by button click

Questions : Lua script in Splash - direct file download by button click


How to directly download and save a file programming by button click using Splash Lua?

Example page and the download button:


  • The download URL is generated dynamically upon button click
  • Clicking the button will open a "Save As" prompt window to save the Excel file
  • I am using a Splash docker service on localhost:8050. I write Lua script directly on the page.

I have searched the official docs about Learning binary download, but the closest things Earhost I have managed to find were html:jpeg, most effective html:png and response.body, which didn't wrong idea quite seem to hit the mark. I also found use of case no explicit examples or tutorials on United Youtube.

Note: Please do not give workarounds Modern such as using Selenium. I am only ecudated interested in how to do it with Lua.

Total Answers 0

Top rated topics

How to apply Superset Migrations when running in docker mode?

How to create .csv or .xlsx file from a data in python

Swagger UI is not using Newtonsoft.Json to serialize decimal, instead using System.Text.json

How to map or index to image and audio in flutter with Swiper(Slider)?

CodeIgniter 4 POST routes not working in production shared hosting on Hostinger

Autoreconf -i not running recursively with AX_SUBDIRS_CONFIGURE

Variable loses its value PHP

Flutter DIO interceptors are not firing

How to create a console.log esk Typewrite Effect

Why Dialog box is opening partially at the left side of the page?

Could not find com.github.ybq:Android-SpinKit:1.4.0

Jenkins doesnot publish HTML report for a webdriverio automation suite

Error when exporting TorchScript model to ONNX - "RuntimeError: module contains attributes values that overlaps"

Ionic fails building in macos 12 (Monterey)

Why can't I scroll down for metrics in Google Data Studio?

Pisdk php when get values use ArcValue

Is googletest test-report format a standard?

CircularProgressIndicator with rounded corner in Compose

Error: Problems reading data from Binary store

Connecting a Wix blog to AWS subdomain

Store values after groupby and loc

How to convert a List<Uint8list> to GIF?

Discord.js - Get Message from Interaction

Docker on AWS ElasticBeanstalk: "host.docker.internal: host-gateway": Connection refused. Iptables issue?

How to check if any row is more than x and return name of column?

My CSS is overwritten by Bootstrap in a React project

C++20 Modules “cyclic dependency”

How to restart job in zeebe

Azure data factory and Log analytics

Caused by: java.lang.NoSuchMethodError: org.gradle.api.artifacts.result.ComponentSelectionReason.getDescription()Ljava/lang/String;

Error while running bundle update after doing git clone

Why am i getting null in mongoose findOne

Is it posssible to run a iTerm2 script automatically whenever a tap opens

Execution failed for task ':app:installDebug'. > No online devices found

How to solve mongo db currupt dump error. whenever I delete some data this error comes. I am attaching the logfile here

Cannot get autocompletion on Django Model Manager in PyCharm

Finding image src using puppeteer

What are the advantages of AWS Amplify DataStore over the Vue.js store?

How to improve accuracy/prediction for EasyOCR?

CoreSimulator framework Out of Date Error on Xcode Startup

Acumatica: How to duplicate an existing screen (Customer Contracts) to a new screen (Vendor Contracts)

Mui DataGrid scroll bar doesn't work on columnHeader

How to fix the error when decompiling MCP 9.18?

How to change the background of a styled.div if the window is scrolled to the top?

Swagger UI from Springfox 3.0 not showing the POST methods in UI

How to make a shadow on Semantic Ui React Navbar Menu

RLlib PPO continuous actions seem to become nan after total_loss = inf?

Laravel Sanctum | Delete current user token not working

Connect deeply nested independent components using React Context vs Event Bus

Make "IntersectionObserver API" work just once