create account

RE: Part 26: Retrieving Data From The STEEM Blockchain And Storing Into A MySQL Database by juliank

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @zipsardinia/re-steempytutorials-part-26-retrieving-data-from-the-steem-blockchain-and-storing-into-a-mysql-database-20180707t084438558z

· @juliank ·
You can manually set the nodes in the code as following:

>nodes = ['https://api.steemit.com',
                      'https://rpc.buildteam.io',
                      'https://rpc.steemviz.com']
   steem = Steem(nodes=self.nodes)
properties (22)
authorjuliank
permlinkre-zipsardinia-re-steempytutorials-part-26-retrieving-data-from-the-steem-blockchain-and-storing-into-a-mysql-database-20180707t093549155z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://api.steemit.com","https://rpc.buildteam.io","https://rpc.steemviz.com"],"app":"steemit/0.1"}
created2018-07-07 09:35:48
last_update2018-07-07 09:35:48
depth2
children2
last_payout2018-07-14 09:35:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length229
author_reputation117,823,071,447,502
root_title"Part 26: Retrieving Data From The STEEM Blockchain And Storing Into A MySQL Database"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id63,760,036
net_rshares0
@zipsardinia ·
>>> nodes=['https://api.steemit.com']
>>> from steem import Steem
>>> steem = Steem(nodes=self.nodes)
Traceback (most recent call last):
  File "<"stdin">", line 1, in "<"module">"
NameError: name 'self' is not defined
properties (22)
authorzipsardinia
permlinkre-juliank-re-zipsardinia-re-steempytutorials-part-26-retrieving-data-from-the-steem-blockchain-and-storing-into-a-mysql-database-20180707t100252431z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://api.steemit.com"],"app":"steemit/0.1"}
created2018-07-07 10:02:54
last_update2018-07-07 10:02:54
depth3
children1
last_payout2018-07-14 10:02:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length218
author_reputation5,608,798,363,039
root_title"Part 26: Retrieving Data From The STEEM Blockchain And Storing Into A MySQL Database"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id63,762,337
net_rshares0
@steempytutorials ·
$0.02
Sorry:

>nodes = ['https://api.steemit.com',
'https://rpc.buildteam.io',
'https://rpc.steemviz.com']
steem = Steem(nodes=nodes)

or within the class:

>self.nodes = ['https://api.steemit.com',
'https://rpc.buildteam.io',
'https://rpc.steemviz.com']
self.steem = Steem(nodes=self.nodes)
👍  
properties (23)
authorsteempytutorials
permlinkre-zipsardinia-re-juliank-re-zipsardinia-re-steempytutorials-part-26-retrieving-data-from-the-steem-blockchain-and-storing-into-a-mysql-database-20180707t105650923z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://api.steemit.com","https://rpc.buildteam.io","https://rpc.steemviz.com"],"app":"steemit/0.1"}
created2018-07-07 10:56:51
last_update2018-07-07 10:56:51
depth4
children0
last_payout2018-07-14 10:56:51
cashout_time1969-12-31 23:59:59
total_payout_value0.016 HBD
curator_payout_value0.005 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length285
author_reputation31,094,047,689,691
root_title"Part 26: Retrieving Data From The STEEM Blockchain And Storing Into A MySQL Database"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id63,766,998
net_rshares11,335,602,978
author_curate_reward""
vote details (1)