How to export html table from website that has values displayed as .png images

McZilla

New Member
Joined
May 1, 2014
Messages
1
I'm trying to export all historical values from this website
Kentucky Lottery

When trying to use a Web Query Function, it imports everything except the pertinent values. I've tried to save the webpage as a .xls file and open it with excel to no avail.

Thanks for reading and if I posted this in the wrong section, please let me know. I have never posted to this or any other forum.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I believe the reason you are unable to pull the numbers you want is because they do not have the numbers just typed in. For each number they are displaying an image file without any alt text attached to it. I cannot really help on how to get the number but I believe you would have to pull in the URL they are using for each number and then pull just the number part. For Example, the numbers look like this:

background:url(/export/kylmod/galleries/images/KYLottery_Keno/5k.png

you would need to grab this then just pull the 5 out.

I hope this gives some direction to move in.
 
Upvote 0

Forum statistics

Threads
1,215,427
Messages
6,124,830
Members
449,190
Latest member
rscraig11

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top