create account

RE: Part 6: How To Automatically Reply To Mentions Using Steem-Python by kirkins

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

Viewing a response to: @steempytutorials/part-6-how-to-automatically-reply-to-mentions-using-steem-python

· @kirkins ·
I'm wondering about the line:

    steem = Steem()

When I look at the github source it's defined on line 13 yet it is never used.

Can that line just be removed?

Also I'm trying to figure out the node error issue. I was able to solve in on another one of your tutorial by passing my keys into the Steem object:

    steem = Steem(nodes,keys)

I'm doing the same with this example but I still get an error about the nodes:
````
WARNING:urllib3.connectionpool:Retrying (Retry(total=17, connect=None, read=None, redirect=0, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f4483e929b0>: Failed to establish a new connection: [Errno -5] No address associated with hostname',)': /
WARNING:urllib3.connectionpool:Retrying (Retry(total=16, connect=None, read=None, redirect=0, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f4483e92ac8>: Failed to establish a new connection: [Errno -5] No address associated with hostname',)': /
WARNING:urllib3.connectionpool:Retrying (Retry(total=15, connect=None, read=None, redirect=0, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f4483e92ba8>: Failed to establish a new connection: [Errno -5] No address associated with hostname',)': /
WARNING:urllib3.connectionpool:Retrying (Retry(total=14, connect=None, read=None, redirect=0, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f4483e92cf8>: Failed to establish a new connection: [Errno -5] No address associated with hostname',)': /
````
Do I have to pass the nodes array into the `blockchain` object too?
properties (22)
authorkirkins
permlinkre-steempytutorials-part-6-how-to-automatically-reply-to-mentions-using-steem-python-20180204t003152306z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-02-04 00:31:54
last_update2018-02-04 00:31:54
depth1
children2
last_payout2018-02-11 00:31: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_length1,777
author_reputation40,750,987,805,431
root_title"Part 6: How To Automatically Reply To Mentions Using Steem-Python"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id34,762,674
net_rshares0
@kirkins · (edited)
I'm a little further now but I keep getting:

    AccountDoesNotExistsException()

When the script runs `post.reply`.
properties (22)
authorkirkins
permlinkre-kirkins-re-steempytutorials-part-6-how-to-automatically-reply-to-mentions-using-steem-python-20180204t021139608z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"busy","app":"busy/2.3.0"}
created2018-02-04 02:11:39
last_update2018-02-04 03:34:12
depth2
children1
last_payout2018-02-11 02:11:39
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_length117
author_reputation40,750,987,805,431
root_title"Part 6: How To Automatically Reply To Mentions Using Steem-Python"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id34,777,683
net_rshares0
@kirkins ·
I managed to fix it by specifying my username in the post function:

    post.reply(body=comment,author='kirkins')
properties (22)
authorkirkins
permlinkre-kirkins-re-kirkins-re-steempytutorials-part-6-how-to-automatically-reply-to-mentions-using-steem-python-20180204t040845200z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"busy","app":"busy/2.3.0"}
created2018-02-04 04:08:45
last_update2018-02-04 04:08:45
depth3
children0
last_payout2018-02-11 04:08:45
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_length115
author_reputation40,750,987,805,431
root_title"Part 6: How To Automatically Reply To Mentions Using Steem-Python"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id34,795,698
net_rshares0