New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How to import table from web site to excel
Hello there,
I would like to import this table
to excel.
Non-IT people need to do it every day.
What would be the simplest way to do it?
Excel import from the web is not working https://prnt.sc/SbK550UvlotA
Regards


Comments
https://chromewebstore.google.com/detail/table-capture/iebpjdmgckacbodjpijphcplhebcmeop?hl=en
~~You can technically making simple scripting to output it to csv, or just use phpmyadmin / adminer to export as CSV
Excel would happy open CSV~~
Edit : Nevermind, I though you call table SQL
Get the their api end point url (go to chrome dev console and check the responses of fetch/xhr). It will give you JSON data.
Save those JSON data (you can name the file whatever; doesn't make any significance)
Convert json to excel with any tool available.
If needs to be done everyday by non tech people then I would have opted for the following:
rust, python, nodejs, php.... you can do it in any programming language.
Are you looking to download tables as spreadsheets from any random website, or are you planning to add a button to your own website to allow people to download your tables as spreadsheets?
Thanks, but it is not working with pagination or I did not use it right.
It is not my web site
I do not have access.
But they don't have any API
I need to download the table from this web site to excel.
This is not my website and I don't need this table on my web site
@Outdoor
Just check the requests in dev console and there's already an endpoint for retrieving the json data (there is even options for filtering).
Whether they legally allow these data to be used, that's a whole another circumstance. But since it's just a js data table, client side fetching will be always possible.
hmm...

http://zbirniregistri.gov.ba/Home/ReadNGOs
Save file (containing JSON data)
Upload here
https://www.convertcsv.com/json-to-csv.htm
"JSON to Excel"
You'll have to do a find/replace for the date though.
You don't need this third-party site if you have a reasonably up-to-date version of Excel.
I have made it work with these steps using PowerShell:
Install-Module -Name ImportExcel -Force -Scope CurrentUser
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
Import-Module ImportExcel
Fetch JSON data
$JsonResponse = Invoke-RestMethod -Uri "http://zbirniregistri.gov.ba/Home/ReadNGOs"
Extract the 'Data' array
$NGOs = $JsonResponse.Data
Export to Excel
$NGOs | Export-Excel -Path "NGOs.xlsx" -AutoSize -TableStyle Medium2
Write-Host "Excel file saved as 'NGOs.xlsx'."
Nowadays chatgpt would help such kinda things. You can use bolt.new to write a tool with Python or powelshell scripts with little it knowledge