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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
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,216,077
Messages
6,128,684
Members
449,463
Latest member
Jojomen56

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