How to parse Json data from remote server

0 votes
I want to extract data from a website and then use the value got from this for my further tasks and function. Is there a way I can do it?
Aug 17, 2018 in Blockchain by slayer
• 29,370 points
972 views

1 answer to this question.

0 votes

Yes, you can do it use the following code:

<?php

$content=file_get_contents("https://www.edureka.co/");

$data=json_decode($content);

//The values are stored in $data. Now you can use them for your functions

?>
answered Aug 17, 2018 by digger
• 26,740 points

Related Questions In Blockchain

0 votes
1 answer

How to retrieve data from a block to a blockchain?

web3.eth.getTransaction(txHash) will returns transaction details like blockHash, transactionIndex, ...READ MORE

answered Jun 27, 2018 in Blockchain by Perry
• 17,100 points
3,982 views
0 votes
1 answer
0 votes
1 answer

How to retrieve data from an Ethereum Block?

To get transaction details like Block Hash ...READ MORE

answered Jul 19, 2018 in Blockchain by Perry
• 17,100 points
2,716 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,942 views
+1 vote
3 answers

Removing double quotes from a string from JSON response in PHP

Just remove the json_encode call, and it should work: $resp ...READ MORE

answered Sep 12, 2018 in Blockchain by digger
• 26,740 points
45,295 views
0 votes
1 answer

How do I add multiple recipients for transactions via Blockchain API?

Convert the recipes into JSON objects. x = ...READ MORE

answered Jul 6, 2018 in Blockchain by Perry
• 17,100 points
924 views
0 votes
1 answer

What files are supported by BigchainDB?

BigchainDB supports .json file format. It can ...READ MORE

answered Feb 26, 2019 in Blockchain by anonymous
580 views
0 votes
1 answer

Python Script to pull data from Blockchain JSON

Try this: print r.json()['address'],' has ', r.json()['n_tx'], 'tr ...READ MORE

answered Sep 14, 2018 in Blockchain by digger
• 26,740 points
2,075 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP