Downloading embedded csv file in the HTML page` - html

I have the following page:
https://www.saudiexchange.sa/wps/portal/saudiexchange/newsandreports/reports-publications/historical-reports/!ut/p/z1/lZDdDsFAEIWfxRPMael2XZZQTZTWtujeyGIjDUrYSHh6jSvqf-5m8p2ZOYckTUkW6pSvlMl3hdqUfSbZzPEY7B7HEL2kDQbhszThlt1p0OQR4KHPEA-8eGi7DvwxSP6lh4gcxN0orPcxgg_2mx5vyvt6Pyv17lvAYiRIkjzqjV4YvQzVYa0NZaEXDO7nncLk5kxZA3DLl2Tlapzy0pTothwOGwJV4EVqlQ3PsdyAD76FOtB-m6bTS6LnzSCPVrXaFUwqqQE!/dz/d5/L0lHSkovd0RNQU5rQUVnQSEhLzROVkUvZW4!/
This page is embedded with CSV files that shows table of records.
The thing I want to do is to download the CSV files of the "Unadjusted Prices and Volumes",
This is because no downloadin option available in the reading view of this page, which makes it difficult to make copy for each of the records in the page
I tried to copy the HTML source code and past it in an website that supposed to make the job. However, I failed.

Related

VSCode -- Preview (i.e. head) a CSV file as the default open option?

I was working with a large CSV file (> 1 GB), I wanted to preview what the columns were and what the data looked like by exploring the top ~100-1000 rows of the data alongside the headers.
When I open the file, my computer hangs for quite awhile due to the size of the file. However, I noticed there is a preview large file: head (I believe through the RainbowCSV extension?) in the context menu that loads much faster and provides the functionality I would want in the strong majority of cases (previewing large files for structure rather than opening them entirely).
Is there anyway to set this context menu option for previewing a large file as the default behavior when clicking on a .csv file in the File Explorer? I would prefer this so I do not accidentally make my computer hang when clicking on a file.
Bonus points if anyone can point me to an extension that let's you paginate CSV files by default.

How to get live data from excel to a webpage?

I have an excel which gets live data from a thrid party. I want to display that live data from excel in a webpage. Can someone guide on how to do it?
Any inputs appreciate
Thank you
Your server will need to make a query of the same source. The following is one of dozens of ways to do this.
Set up a cron job to to the following:
1:Use curl to pull the data.
2:Use an awk program to reformat the data to a data file as a table with html table markup.
3:Concatenate a header file, your data file, and a trailer file to make a valid html file that you want.
4:Store that file on the web server.
If you want to do live updates rather than have the user reload the file you either have to push the data, or write JavaScript to reload the webpage element at intervals.
This is an excellent project. Learn this and you’ll have a big step up in your web building skills.

Access Website & Download files from a Server

I am trying to write a VBA macro to download files from our companies server. In order to download the files, I look for their number of our my excel list. E.G. the number is "250". Then I need to search for "250" on the website and then get the objectID of the file.
So the links of the download document looks like this :
https://plm.corp.int:10090/enovia/tvc-action/downloadMultipleFiles?objectId=***4706.39075.61185.44166***&object=250
4706.39075.61185.44166 this number is what I need to find for every of my numbers from excel, in order to edit the download link and get the files.
in the image you can see how it looks in the source code of the website...
Now I have absolutely no idea how I can extract such data our of source code in VBA
#Zwenn
enter image description here
the E2**** is the number out of excel, that i am searching for on the platform.
The 4706 number form my original question, is the unique ID of every E2***number.

How to run html with json files in SharePoint?

I am making SharePoint spaces for various departments in insurance company. One of them wants to save and share their outputs via SharePoint. That outputs are maps with risk areas. Because maps includes many data layers, all the files are in one folder.
I have uploaded a folder with CSS, JSON, JS and HTML files to the library in SharePoint, but when I doubleclicked on HTML file, the page will not load. I think it's due to the JSON files.
What I need is to run whole page correctly with simple doubleclick.
Can anyone give me advice how to run other files supporting HTML with doubleclicking on HTML file?
Thank you.
I've had this same issue. To get the HTML to play in the browser (without SharePoint trying to make you download it), you need to rename the HTML file to an ASPX file.
To do this, you need to be in the Windows Explorer view (from a document library, go Library > Open with Explorer). Then change the file name from index.html to index.aspx.
However, if you're also using JSON files, that could be an issue. SharePoint prohibits you from uploading JSON files unfortunately.

R Writing Excel Document

My question is whether or not anybody knows of a better way to do what I'm already doing. I'm creating a report as a list, and trying to render it both in HTML and Excel.
I'm developing a shiny app that generates reports for Qualtrics surveys.
The results table is a list of HTML strings that I paste together and display in a shinydashboard. Here's a dput of the example results tables.
Here's how I'm creating the html results tables list -- the html_tabelize() function in my package. Here's a dput of the example input.
In the shiny server.R file the way I create the Excel file is with the following code:
output$downloadResults <- downloadHandler(
filename = 'tables.xls',
content = function(file) {
write(html_tabelize(main()[['blocks']]), file)
}
)
To summarize: I get the blocks, I run html_tabelize on them, and then I write the HTML output to a file called "tables.xls". When I open that file, because Excel can render HTML, it renders something like this:
My concern and problem with what I'm doing are two-fold:
If I were writing an Excel document instead of simply rendering HTML in Excel, then I could perhaps get a better formatted document. I'd like that.
When you download the results tables xls file and try to open it, you get a warning from Excel. I don't want the users of my app to see this warning, because it's distracting and could worry them about something that isn't really a concern.
I know that options exist for writing Excel files in R, but so far what I've seen indicates that their input must be either a data frame, or a list of data frames. The list I am rendering from has different types of components, like the question text, as well as data frames of results. Originally I was using pandoc, but pandoc, even when run from R, is a system binary, and it's difficult to list as a dependency (and if I can't list it as a dependency, it's tough to make sure it's installed for the users of my app). Additionally, I found out pandoc doesn't even convert to "real" Excel -- it also just saves HTML in a .xls file. Does anybody have any suggestions as to how I can improve this part of my app?