create account

RE: Write a Steemit Web App: Part 9 - Retrieving Content with getDiscussionsBy*() by neuromancer

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

Viewing a response to: @jfollas/write-a-steemit-web-app-part-9-retrieving-content-with-getdiscussionsby

· @neuromancer ·
I wish I had the time to experiment in interacting with steemit via API calls and (attempting) scripted routines, I'll happily settle for reading your articles with keen interest.

Some things I'd really like to see would be, for one, a tag explorer that was aware of votes/views for various tags and able to suggest the best tags to apply to an article based on a selection of keywords.

I'm really looking forward to your next post about retrieving and posting comments, it's giving me hope that there will someday be a means of checking comments at submission time to see if it's:
* very short/generic XOR
* clone of another comment AND
* Nth clone of X comment in Y period

Then warning the submitter of potential reputation consequences should they choose to proceed, the second 2 conditions being by far more important. That's the other one I'd *really* like to see.
properties (22)
authorneuromancer
permlinkre-jfollas-write-a-steemit-web-app-part-9-retrieving-content-with-getdiscussionsby-20170728t074055777z
categorysteemdev
json_metadata{"tags":["steemdev"],"app":"steemit/0.1"}
created2017-07-28 07:41:06
last_update2017-07-28 07:41:06
depth1
children2
last_payout2017-08-04 07:41:06
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_length872
author_reputation865,641,939,516
root_title"Write a Steemit Web App: Part 9 - Retrieving Content with getDiscussionsBy*()"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id9,994,451
net_rshares0
@jfollas ·
Not sure that out of the box API would support your type of query. You'd probably have to use one of the database implementations (blockchain/transactions stored in a searchable database) because you're looking to find matches across the comments from a multitude of posts at a time.
properties (22)
authorjfollas
permlinkre-neuromancer-re-jfollas-write-a-steemit-web-app-part-9-retrieving-content-with-getdiscussionsby-20170730t145341449z
categorysteemdev
json_metadata{"tags":["steemdev"],"app":"steemit/0.1"}
created2017-07-30 14:53:39
last_update2017-07-30 14:53:39
depth2
children1
last_payout2017-08-06 14:53: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_length283
author_reputation4,351,701,088,490
root_title"Write a Steemit Web App: Part 9 - Retrieving Content with getDiscussionsBy*()"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id10,226,146
net_rshares0
@neuromancer ·
An API call would go to steemit from an external source, but what I'm describing probably cannot be achieved by anything other than steemit server side, essentially something along these lines (and please excuse the faux verbs/functions):

FOR `user` submitting a comment, return an array of `comments`,`datetimestamp` WHERE `datediff(now,12H)` AND `string(exact(comment))`,  count all perfect matches of current comment, return `count, time, string`

`user`, this is the `count` time you have posted the exact phrase "`string`" in `time`, please consider a less generic response, steemians thrive on original content & meaningful contributions, proceeding with this comment may negatively impact your reputation.
[POST]()     [EDIT]()

EG:
[copypastamasta](), this is the [11th]() time you have posted the exact phrase "[good post, I upvote please upvote me]()" in 37 minutes, please consider a less generic response, steemians thrive on original content & meaningful contributions, proceeding with this comment may negatively impact your reputation.
[POST]()     [EDIT]()

Not something within your purview, I know, more just a hypothetical item for discussion.
properties (22)
authorneuromancer
permlinkre-jfollas-re-neuromancer-re-jfollas-write-a-steemit-web-app-part-9-retrieving-content-with-getdiscussionsby-20170731t071946486z
categorysteemdev
json_metadata{"tags":["steemdev"],"app":"steemit/0.1"}
created2017-07-31 07:19:48
last_update2017-07-31 07:19:48
depth3
children0
last_payout2017-08-07 07:19: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_length1,193
author_reputation865,641,939,516
root_title"Write a Steemit Web App: Part 9 - Retrieving Content with getDiscussionsBy*()"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id10,293,636
net_rshares0