Scrape details from generated webpage

pmhtuk

New Member
Joined
May 8, 2015
Messages
3
Hi

We're looking at a basic licensing tool - it's going to be straight forward where someone inputs a licence code (generated from website) which auto populates a single line confirmation.

I'm trying to see how I'd add this single line into a excel cell somehow, and then work with the string to pull bits out.

So for example, user enters code XYZ123 and excel adds this to a URL (so www.website.com/code=XYZ123

The website would display a code from the system on screen as pure text, example:

Code:
[COLOR=#000000]{"success":true,"license":"valid","item_id":4398,"item_name":"Template Spreadsheet","license_limit":7,"site_count":3,"expires":"lifetime","activations_left":4,"checksum":"dbafdb3eca5ff8b5dea6fa","payment_id":454477,"customer_name":"MrExcel","customer_email":"me@gmail.com","price_id":false}[/COLOR]

Before I spend the night googling, is there an easy way to pull the above into a cell?

The data would slightly change going forward, e.g. the email address etc, depending on the licence activation

Many thanks

P
 

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
Hi pmhtuk,
that's basically JSON, the latest versions of Excel have some tools to process it, mainly PowerQuery. Did you try the menu option DATA->from the web ? That does give you the option to preprocess the data into a table so you don't have to cut it manually/with formulas.
Hope that helps,
Koen
 
Upvote 0

Forum statistics

Threads
1,214,813
Messages
6,121,705
Members
449,048
Latest member
81jamesacct

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