 ### Getting Started To use SteemData from your favorite language, just install the appropriate MongoDB library. You can find one for all major languages like [JavaScript](https://www.npmjs.com/package/mongodb), [Python](http://api.mongodb.com/python/current/installation.html), [Go](http://labix.org/mgo) and [others](https://docs.mongodb.com/manual/applications/drivers/). You can connect to the public SteemData server via the following URI: ``` mongodb://steemit:steemit@mongo1.steemdata.com:27017/SteemData ``` This tutorial uses **Python**, for which you can install a neat helper library that includes PyMongo and a few extra niceties. ``` pip install -U steemdata ``` **Quick example:** ``` > from steemdata import SteemData > s = SteemData() > s.info() mongodb://steemit:steemit@mongo1.steemdata.com:27017/SteemData > s.Accounts.find_one({'name':'furion'})['balances'] {'SAVINGS_SBD': 100.0, 'SAVINGS_STEEM': 0.0, 'SBD': 6.453, 'STEEM': 66.157, 'VESTS': 86491944.341744} ``` ### RoboMongo I highly recommend [RoboMongo](https://robomongo.org/) as a cross-platform GUI utility for playing around with SteemData. https://vimeo.com/205691651 *You can find sample queries from the video [here](https://gist.github.com/Netherdrake/a844ebf771c96929bee8ddb446d1cfa6)*. ### Collections #### Accounts Accounts contains Steem Accounts and their: - account info / profile - balances - vesting routes - open conversion requests - voting history on posts - a list of followers and followings - witness votes - curation stats #### Posts Here you can find all top-level posts, with full-text search support for content bodies. #### Operations Operations contains all the events that happened on the blockchain so far. You can query for operations in individual blocks, or by time, operation type (comment, transfer, vote...) or arbitrary properties. See [Digging Deeper]() for examples. #### AccountOperations Same as operations, but with account ownership attached for easy querying. #### PriceHistory Snapshots of Bitcoin, STEEM, SBD and USD implied prices. --- You can access collections easily via SteemData helper. ``` > s = SteemData() > [print(x) for x in s.__dict__.keys()] db Operations AccountOperations PriceHistory Posts Accounts ``` We can see a few properties starting with UPPER case letters. These give us easy access to main SteemData collections. Alternatively, you can query a collection via `db` property. ``` s = SteemData() # these two do the same thing s.Accounts s.db['Accounts'] ``` ### Querying If you're new to MongoDB, I highly recommend [this querying guide](https://docs.mongodb.com/manual/tutorial/query-documents/). I will only point out a few gotchas in regards to SteemData. #### Using Indexes For best performance on your queries, make sure you're using indexed fields whenever possible. You can check out which fields are indexed by using `index_information()`: ``` s = SteemData() indexes = list(s.Operations.index_information()) print(indexes) ``` As you will find out, most commonly queried fields are indexed, like `account`/`name`, `type`, `timestamp`, `identifier`, `permlink`, `author`, `memo` to name a few. #### Using Projection Using projection will make queries a lot faster, save bandwidth and do the job of only returning the data that you need. For example, if you're only interested in someone's followers, you can use `projection` to get only that field. ``` s.Accounts.find_one({'name': steemit_username}, projection={'followers': 1, '_id': 0}) ``` This is similar to `SELECT followers FROM accounts` vs `SELECT * FROM accounts` in SQL. #### Using Limits By default, all results will be returned. This could make queries run for longer, and is wasteful, especially if you only need *some* results at a time (ie. top 100). This is where limits come in, for example, if we need top 100 accounts by SteemPower: ``` q = s.Accounts.find({}, projection={'sp': 1, 'name': 1, '_id': 0}, sort=[('sp', -1)], limit=100) print(list(c)) ``` #### Pagination Following the above example, we can get the *next* 100 accounts (100-200) by using `skip` argument ``` q = s.Accounts.find({}, projection={'sp': 1, 'name': 1, '_id': 0}, sort=[('sp', -1)], limit=100, skip=100) ``` #### Syntax Sugar If you'd like, you can also use method chaining instead of arguments. For example: ``` s.Accounts.find({}).projection(...).sort(...).limit(100).skip(100) ``` ### Example Lets wrap up with a practical example. The [folowers page on steemit](https://steemit.com/@furion/followers) is pretty bland - it only shows usernames. What if we could spice it up, by displaying users *profile picture, steem-power, reputation, and their own followers statistics*. How would we obtain this data? Here is a function that is powering [an API endpoint that does just that](https://api0.steemdata.com/busy.org/furion/with_metadata/followers). ``` def busy_account_following(account_name, following): """ Fetch users followers or followings and their metadata. Returned list is ordered by follow time (newest followers first). \n Usage: `GET /busy/<string:account_name>/with_metadata/<string:following>`\n `following` must be 'following' or 'followers'.\n """ if following not in ['following', 'followers']: raise ParseError(detail='Please specify following or followers.') acc = mongo.db['Accounts'].find_one({'name': account_name}, {following: 1, '_id': 0}) if not acc: raise NotFound(detail='Could not find STEEM account %s' % account_name) # if follower list is empty if not acc[following]: return [] allowed_fields = { '_id': 0, 'name': 1, 'sp': 1, 'rep': 1, 'profile.profile_image': 1, 'followers_count': 1, 'following_count': 1, 'post_count': 1, } accounts_w_meta = list(mongo.db['Accounts'].find({'name': {'$in': acc[following]}}, allowed_fields)) # return in LIFO order (last to follow is listed first) accounts_ordered = list(repeat('', len(acc[following]))) for a in accounts_w_meta: with suppress(ValueError): accounts_ordered[acc[following].index(a.get('name', None))] = a return [x for x in accounts_ordered if x][::-1] ``` ### Digging Deeper If you'd like to learn how [SteemData Charts](https://steemdata.com/charts) work behind the scenes, feel free to download and run [this iPython Notebook](https://github.com/SteemData/steemdata-charts/blob/master/Charts.ipynb). It should give you some ideas of what SteemData can be used for, as well as provides a quick way for you to start playing with code and writing your own. 
author | furion |
---|---|
permlink | getting-started-with-steemdata |
category | steemdata |
json_metadata | {"tags":["steemdata","steem","steemit","steemdev"],"image":["https://steemitimages.com/0x0/https://i.imgur.com/uAu5ST4.jpg","http://i.imgur.com/qw65eQD.png"],"links":["https://www.npmjs.com/package/mongodb","http://api.mongodb.com/python/current/installation.html","http://labix.org/mgo","https://docs.mongodb.com/manual/applications/drivers/","https://robomongo.org/","https://player.vimeo.com/video/205691651","https://gist.github.com/Netherdrake/a844ebf771c96929bee8ddb446d1cfa6","https://docs.mongodb.com/manual/tutorial/query-documents/","https://steemit.com/@furion/followers","https://api0.steemdata.com/busy.org/furion/with_metadata/followers","https://steemdata.com/charts","https://github.com/SteemData/steemdata-charts/blob/master/Charts.ipynb"],"app":"steemit/0.1","format":"markdown"} |
created | 2017-02-28 14:53:09 |
last_update | 2017-03-01 07:56:21 |
depth | 0 |
children | 12 |
last_payout | 2017-03-31 20:51:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 129.564 HBD |
curator_payout_value | 8.869 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 6,887 |
author_reputation | 116,503,940,714,958 |
root_title | "Getting started with SteemData" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 0 |
post_id | 2,613,487 |
net_rshares | 158,184,961,158,387 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
berkah | 0 | 84,148,454,139 | 90% | ||
summon | 0 | 5,867,133,309,245 | 100% | ||
blocktrades | 0 | 58,134,093,850,233 | 100% | ||
jamesc | 0 | 34,621,958,623,634 | 100% | ||
badassmother | 0 | 184,087,315,846 | 75% | ||
sandra | 0 | 47,692,073,985 | 80% | ||
ihashfury | 0 | 60,794,142,265 | 55.2% | ||
roadscape | 0 | 9,087,636,446,291 | 100% | ||
wang | 0 | 153,243,477,250 | 1% | ||
steemit200 | 0 | 594,388,669,410 | 75% | ||
boy | 0 | 20,466,996,809 | 100% | ||
bue-witness | 0 | 24,935,299,597 | 100% | ||
bunny | 0 | 3,712,638,243 | 100% | ||
bue | 0 | 397,699,203,956 | 100% | ||
mini | 0 | 10,947,276,831 | 100% | ||
moon | 0 | 1,393,764,508 | 100% | ||
joseph | 0 | 507,679,139,029 | 90% | ||
aizensou | 0 | 686,096,405,601 | 100% | ||
au1nethyb1 | 0 | 1,335,406,547,324 | 75% | ||
jason | 0 | 45,903,714,715 | 55.2% | ||
recursive3 | 0 | 378,181,831,594 | 100% | ||
recursive | 0 | 3,907,958,738,404 | 100% | ||
biodragon | 0 | 182,617,968,999 | 90% | ||
steempower | 0 | 1,187,114,921,510 | 100% | ||
pairmike | 0 | 3,728,930,383 | 1% | ||
pheonike | 0 | 11,539,644,818 | 6% | ||
proctologic | 0 | 4,496,311,092 | 1% | ||
idol | 0 | 9,016,374,277 | 90% | ||
healthcare | 0 | 4,090,943,117 | 100% | ||
daniel.pan | 0 | 6,462,912,036 | 100% | ||
steemrollin | 0 | 129,403,667,045 | 50% | ||
konelectric | 0 | 711,354,844 | 1% | ||
chitty | 0 | 365,625,139,495 | 100% | ||
helen.tan | 0 | 1,875,491,668 | 100% | ||
valtr | 0 | 3,397,548,949 | 20% | ||
jocelyn | 0 | 103,192,849,937 | 90% | ||
noisy | 0 | 272,080,788,434 | 100% | ||
jamtaylor | 0 | 61,074,829,051 | 100% | ||
leesunmoo | 0 | 674,384,649,877 | 100% | ||
paco-steem | 0 | 1,488,353,443 | 100% | ||
hipster | 0 | 627,628,348,429 | 85% | ||
spaninv | 0 | 1,728,518,967 | 100% | ||
forrestwillie | 0 | 646,785,535 | 1% | ||
teamsteem | 0 | 420,524,065,192 | 100% | ||
richman | 0 | 111,798,284,800 | 100% | ||
tad-auker | 0 | 1,226,506,690 | 20% | ||
nanzo-scoop | 0 | 1,702,110,945,762 | 100% | ||
pal | 0 | 349,873,684,939 | 100% | ||
acidyo | 0 | 70,138,664,356 | 85% | ||
dan-atstarlite | 0 | 156,730,401,673 | 100% | ||
mummyimperfect | 0 | 99,661,306,103 | 100% | ||
oaldamster | 0 | 65,048,752,393 | 100% | ||
kevinwong | 0 | 882,921,456,752 | 100% | ||
cryptofunk | 0 | 13,082,807,499 | 65% | ||
error | 0 | 326,172,340 | 90% | ||
ak2020 | 0 | 63,020,928,234 | 100% | ||
thecryptofiend | 0 | 302,305,660,582 | 100% | ||
justtryme90 | 0 | 262,695,804,818 | 100% | ||
applecrisp | 0 | 1,495,248,769 | 100% | ||
stiletto | 0 | 402,259,335 | 100% | ||
ratel | 0 | 17,298,149,932 | 60% | ||
thecryptodrive | 0 | 201,900,174,317 | 100% | ||
bravenewcoin | 0 | 125,385,852,881 | 100% | ||
andrei | 0 | 248,959,388 | 1% | ||
facer | 0 | 78,807,636,733 | 100% | ||
beervangeer | 0 | 86,480,649,988 | 100% | ||
proglobyte | 0 | 1,358,798,482 | 25% | ||
grandpere | 0 | 6,325,376,160 | 10% | ||
mark-waser | 0 | 49,261,856,756 | 100% | ||
geoffrey | 0 | 391,224,185,952 | 100% | ||
crok | 0 | 4,626,271,318 | 100% | ||
christoph3 | 0 | 9,368,181,808 | 100% | ||
emily-cook | 0 | 13,492,705,251 | 100% | ||
tskeene | 0 | 17,974,921,938 | 100% | ||
fyrstikken | 0 | 52,333,736,522 | 1% | ||
cryptoiskey | 0 | 104,147,137,745 | 100% | ||
skapaneas | 0 | 32,102,475,437 | 100% | ||
grey580 | 0 | 374,015,386 | 1% | ||
good-karma | 0 | 278,040,445,437 | 100% | ||
sonzweil | 0 | 161,510,900,202 | 100% | ||
yoonjang0707 | 0 | 122,635,319,228 | 100% | ||
getssidetracked | 0 | 2,428,572,635 | 85% | ||
stranger27 | 0 | 13,373,808,294 | 100% | ||
trees | 0 | 1,442,987,148 | 85% | ||
strawhat | 0 | 2,304,777,299 | 85% | ||
redpalestino | 0 | 125,808,549,593 | 100% | ||
cryptochannel | 0 | 2,202,072,590 | 85% | ||
bartcant | 0 | 990,953,449 | 100% | ||
picokernel | 0 | 145,518,530,154 | 90% | ||
furion | 0 | 289,388,985,162 | 100% | ||
cdubendo | 0 | 106,069,226,315 | 100% | ||
strangerarray | 0 | 40,610,755,108 | 100% | ||
mrgreen | 0 | 5,370,346,057 | 85% | ||
ausbitbank | 0 | 136,809,533,439 | 100% | ||
steemit-life | 0 | 182,572,750,878 | 60% | ||
jesta | 0 | 1,510,299,502,370 | 100% | ||
annieb | 0 | 2,422,589,723 | 100% | ||
bitland | 0 | 1,875,007,456 | 22% | ||
paco | 0 | 97,484,703,220 | 100% | ||
speda | 0 | 59,461,674,174 | 100% | ||
jamesjarman | 0 | 1,703,491,584 | 1% | ||
igster | 0 | 19,043,943,980 | 100% | ||
deviedev | 0 | 11,856,305,700 | 100% | ||
transisto | 0 | 10,425,943,421,092 | 100% | ||
jaycobbell | 0 | 15,404,019,999 | 100% | ||
bycz | 0 | 13,996,369,531 | 100% | ||
gregm | 0 | 209,029,673,387 | 100% | ||
karenmckersie | 0 | 2,020,602,650 | 1% | ||
pkattera | 0 | 362,022,583,157 | 100% | ||
luisucv34 | 0 | 24,098,727,150 | 100% | ||
krystle | 0 | 36,889,010,711 | 100% | ||
inertia | 0 | 234,087,988,663 | 100% | ||
rouketas | 0 | 50,010,236 | 100% | ||
lichtblick | 0 | 218,846,403,584 | 100% | ||
demotruk | 0 | 674,105,534,612 | 100% | ||
blueorgy | 0 | 185,923,428,587 | 100% | ||
opheliafu | 0 | 153,964,805,671 | 69% | ||
coininstant | 0 | 75,292,974,572 | 100% | ||
ubg | 0 | 588,385,117 | 2% | ||
sokal | 0 | 2,664,214,331 | 100% | ||
pokemon | 0 | 238,951,716 | 85% | ||
sokoloffa | 0 | 14,548,310,657 | 100% | ||
mysteem | 0 | 2,812,622,112 | 100% | ||
sergey44 | 0 | 490,289,155 | 100% | ||
johnsmith | 0 | 217,102,184,642 | 100% | ||
lemooljiang | 0 | 63,436,843,192 | 100% | ||
fabien | 0 | 733,191,135,046 | 100% | ||
alexpmorris | 0 | 12,094,945,390 | 100% | ||
malaiandrueth | 0 | 51,801,414,241 | 100% | ||
steemdrive | 0 | 48,797,664,283 | 100% | ||
dirty.hera | 0 | 190,807,161 | 100% | ||
proglobyte-m1 | 0 | 1,374,925,548 | 25% | ||
craigslist | 0 | 2,772,000,891 | 100% | ||
tingaling | 0 | 1,356,255,297 | 25% | ||
toxichan | 0 | 162,317,735 | 1% | ||
timelapse | 0 | 462,760,694 | 1% | ||
thisvsthis | 0 | 4,367,626,773,353 | 100% | ||
ullikume | 0 | 13,230,762,287 | 100% | ||
bapichat | 0 | 63,192,448 | 100% | ||
tommycoin | 0 | 137,787,588,362 | 100% | ||
kurtbeil | 0 | 39,561,946,517 | 25% | ||
steemleak | 0 | 5,026,125,088 | 100% | ||
antfield | 0 | 21,016,517,920 | 100% | ||
juurop | 0 | 2,701,206,953 | 80% | ||
usb | 0 | 683,363,396 | 80% | ||
tannukas6 | 0 | 953,687,021 | 80% | ||
ekitcho | 0 | 735,894,316,987 | 100% | ||
joele | 0 | 208,220,043,526 | 100% | ||
randyclemens | 0 | 4,723,217,979 | 100% | ||
darthnava | 0 | 389,359,958 | 1% | ||
cristi | 0 | 67,032,933,232 | 100% | ||
jrcornel | 0 | 653,579,177,979 | 100% | ||
scaredycatguide | 0 | 81,990,830,199 | 100% | ||
zentat | 0 | 1,423,915,871 | 25% | ||
quitothewalrus | 0 | 340,183,562 | 100% | ||
rmach | 0 | 39,271,619,416 | 100% | ||
gardoz32 | 0 | 8,535,924,348 | 100% | ||
virtualgrowth | 0 | 6,353,213,289 | 30% | ||
helikopterben | 0 | 517,593,295,006 | 100% | ||
lemouth | 0 | 68,032,571,326 | 100% | ||
lamech-m | 0 | 4,940,320,223 | 100% | ||
mindfreak | 0 | 48,820,188,128 | 100% | ||
ripplerm | 0 | 14,897,521,492 | 100% | ||
cryptomental | 0 | 1,651,836,522 | 100% | ||
jsantana | 0 | 9,935,647,742 | 50% | ||
rjbauer85 | 0 | 311,809,956 | 50% | ||
cryptomancer | 0 | 189,992,330,769 | 100% | ||
samstonehill | 0 | 42,822,766,928 | 70% | ||
jyp | 0 | 134,443,614,735 | 100% | ||
garywilson | 0 | 10,417,402,076 | 100% | ||
kenistyles | 0 | 12,875,632,211 | 100% | ||
craigwilliamz | 0 | 15,486,874,483 | 100% | ||
onetree | 0 | 58,760,760,964 | 100% | ||
lily-da-vine | 0 | 16,382,700,506 | 30% | ||
gduran | 0 | 3,352,203,704 | 100% | ||
inchonbitcoin | 0 | 495,030,427,754 | 100% | ||
steembriefing | 0 | 1,370,145,038 | 25% | ||
etcmike | 0 | 148,446,439,738 | 50% | ||
englishtchrivy | 0 | 86,244,478,426 | 100% | ||
runridefly | 0 | 6,381,668,486 | 15% | ||
barrydutton | 0 | 1,364,165,373 | 1% | ||
stephenkendal | 0 | 28,807,588,519 | 100% | ||
jlufer | 0 | 6,103,420,981 | 100% | ||
ashleywilliamz | 0 | 6,292,930,561 | 100% | ||
penguinpablo | 0 | 157,058,704,044 | 100% | ||
steemitguide | 0 | 629,287,062 | 1% | ||
richardcrill | 0 | 1,440,566,233 | 1% | ||
davidjkelley | 0 | 2,439,421,462 | 100% | ||
team101 | 0 | 1,083,912,777 | 100% | ||
sponge-bob | 0 | 198,730,281,588 | 40% | ||
digital-wisdom | 0 | 20,885,150,569 | 100% | ||
ethical-ai | 0 | 5,939,807,227 | 100% | ||
dailybitcoinnews | 0 | 8,805,052,897 | 50% | ||
smi | 0 | 161,484,243 | 100% | ||
titusfrost | 0 | 29,612,722,450 | 100% | ||
jwaser | 0 | 8,429,751,858 | 100% | ||
shieha | 0 | 25,899,405,496 | 100% | ||
kyusho | 0 | 44,924,044,585 | 100% | ||
betamusic | 0 | 17,199,324,247 | 50% | ||
profitgenerator | 0 | 40,169,537,824 | 100% | ||
benjamin.still | 0 | 11,899,250,110 | 100% | ||
jacobts | 0 | 229,319,253 | 1% | ||
dubi | 0 | 118,372,506,839 | 100% | ||
goose | 0 | 12,237,608,868 | 100% | ||
bwaser | 0 | 2,990,060,335 | 100% | ||
finleyexp | 0 | 1,003,501,336 | 100% | ||
dexter-k | 0 | 78,312,813,290 | 100% | ||
allyouneedtoknow | 0 | 23,197,499,260 | 100% | ||
patelincho | 0 | 112,500,784 | 1% | ||
bitcoinparadise | 0 | 27,259,532,964 | 100% | ||
voodoolizard | 0 | 9,824,598,209 | 100% | ||
bontonstory | 0 | 86,892,203,522 | 100% | ||
ellepdub | 0 | 9,489,236,957 | 100% | ||
rynow | 0 | 28,989,819,610 | 100% | ||
skt | 0 | 407,311,235,241 | 100% | ||
arama | 0 | 2,029,853,685,168 | 100% | ||
herpetologyguy | 0 | 78,494,886,360 | 100% | ||
morgan.waser | 0 | 5,405,430,419 | 100% | ||
cupang | 0 | 2,019,204,329 | 100% | ||
thegame | 0 | 520,000,427 | 10% | ||
okean123 | 0 | 8,447,091,883 | 100% | ||
donchate | 0 | 7,889,563,767 | 100% | ||
steembets | 0 | 528,074,983 | 10% | ||
saiku | 0 | 8,610,141,541 | 100% | ||
strong-ai | 0 | 5,915,259,037 | 100% | ||
dylanhobalart | 0 | 17,336,075,929 | 100% | ||
steemint | 0 | 1,360,285,490 | 25% | ||
bleujay | 0 | 108,009,844,314 | 53% | ||
gamer00 | 0 | 4,459,056,766 | 1% | ||
steemsports | 0 | 409,946,483,531 | 100% | ||
tomino | 0 | 196,341,597,275 | 100% | ||
revostrike | 0 | 116,210,886 | 1% | ||
anagamidev | 0 | 300,740,264,293 | 100% | ||
ianstrat | 0 | 8,184,077,165 | 100% | ||
giantbear | 0 | 1,253,875,766 | 1% | ||
keuudeip | 0 | 44,417,085,522 | 100% | ||
stray | 0 | 423,092,677 | 1% | ||
sochul | 0 | 1,010,250,718,101 | 100% | ||
very | 0 | 25,820,904,899 | 100% | ||
dongu | 0 | 27,544,351,092 | 100% | ||
daisyd | 0 | 276,841,579 | 1% | ||
steemland.com | 0 | 528,120,468 | 10% | ||
eroche | 0 | 22,902,971,372 | 60% | ||
sqube | 0 | 2,969,141,371 | 1% | ||
whatageek | 0 | 716,775,618 | 1% | ||
gutzofter | 0 | 72,087,947,523 | 100% | ||
steemspoker | 0 | 8,143,727,605 | 100% | ||
chessmasters | 0 | 7,897,425,126 | 100% | ||
our | 0 | 519,938,018 | 80% | ||
steemprentice | 0 | 15,977,073,148 | 30% | ||
technoprogressiv | 0 | 5,698,959,294 | 100% | ||
wagnertamanaha | 0 | 3,232,999,383 | 100% | ||
mafeeva | 0 | 26,930,455,836 | 100% | ||
reisman | 0 | 2,426,566,287 | 100% | ||
bugs | 0 | 480,063,429 | 80% | ||
important | 0 | 511,937,876 | 80% | ||
government | 0 | 479,877,901 | 80% | ||
elven | 0 | 2,068,357,674 | 80% | ||
bottymcbotface | 0 | 206,889,730 | 56% | ||
fairlight | 0 | 488,496,032 | 80% | ||
irawandedy | 0 | 1,666,237,158 | 100% | ||
aniestudio | 0 | 13,076,232,471 | 100% | ||
seablue | 0 | 343,612,567 | 1% | ||
chappers | 0 | 17,523,462,168 | 100% | ||
beeskee | 0 | 6,870,439,571 | 100% | ||
the-devil | 0 | 347,655,897 | 50% | ||
valiozzi | 0 | 603,732,855 | 100% | ||
meysam | 0 | 536,586,595 | 1% | ||
codydeeds | 0 | 65,206,450,698 | 100% | ||
choreboy | 0 | 6,432,568,137 | 100% | ||
kyra-kristian | 0 | 88,620,304 | 100% | ||
madlenfox | 0 | 2,052,954,526 | 97% | ||
jphenderson | 0 | 487,614,725 | 30% | ||
tamersameeh | 0 | 515,966,703 | 100% | ||
quck | 0 | 3,288,520,295 | 80% | ||
stmdxrafi | 0 | 52,650,238 | 50% | ||
johnthehoan | 0 | 606,846,098 | 100% | ||
personz | 0 | 27,787,935,967 | 100% | ||
mammuhte | 0 | 415,164,871 | 100% | ||
askari | 0 | 418,753,501 | 100% | ||
lastminuteman | 0 | 53,754,552,647 | 100% | ||
tsirkus | 0 | 2,521,363,264 | 80% | ||
obverse | 0 | 2,169,100,671 | 80% | ||
driptorchpress | 0 | 76,917,124 | 1% | ||
sebastianjago | 0 | 81,852,335,319 | 100% | ||
noagenda | 0 | 985,608,115,477 | 100% | ||
steemcenterwiki | 0 | 503,234,593 | 100% | ||
loreennaa | 0 | 797,525,979 | 100% | ||
free2play | 0 | 572,803,239 | 25% | ||
fisteganos | 0 | 3,021,749,031 | 40% | ||
thedeplorable1 | 0 | 548,898,991 | 1% | ||
eem | 0 | 151,743,726 | 53% | ||
neogia | 0 | 18,487,625,136 | 100% | ||
ogochukwu | 0 | 3,299,801,451 | 100% | ||
smalltalk | 0 | 182,751,006 | 17% | ||
tonylondon | 0 | 707,618,643 | 100% | ||
chirobanm | 0 | 321,145,042 | 100% | ||
theghost1980 | 0 | 6,455,193,057 | 100% | ||
davidgermano | 0 | 2,325,974,014 | 100% | ||
michaelnonso | 0 | 80,110,578 | 100% | ||
honusurf | 0 | 18,085,420,337 | 100% | ||
cassidyandfranks | 0 | 1,869,108,398 | 100% | ||
benjiparler | 0 | 427,669,824 | 85% | ||
deadmosco | 0 | 3,638,006,598 | 100% | ||
denmarkguy | 0 | 257,351,176 | 1% | ||
mestyz | 0 | 116,148,583 | 100% | ||
radicalrebelove | 0 | 921,826,598 | 100% | ||
vegaiq | 0 | -250,938,833 | -100% | ||
amrizal | 0 | 2,257,909,275 | 100% | ||
fahmiauliasfr | 0 | 1,906,744,543 | 100% | ||
sciampa | 0 | 357,505,204 | 100% | ||
syibran | 0 | 1,775,289,495 | 100% | ||
radiv | 0 | 1,486,722,601 | 100% | ||
emeka | 0 | 90,778,685 | 100% | ||
khairulfajri | 0 | 1,767,397,429 | 100% | ||
carlaaranguren | 0 | 632,806,825 | 100% | ||
justinashby | 0 | 775,092,172 | 100% | ||
suheimi45 | 0 | 336,802,637 | 100% | ||
austrin16 | 0 | 1,385,677,343 | 80% | ||
carfanatic | 0 | 655,414,199 | 80% | ||
rckymaulana | 0 | 412,410,821 | 100% | ||
kamidela | 0 | 51,025,493 | 100% | ||
evildeathcore | 0 | 635,078,394 | 100% | ||
harryhood | 0 | 342,594,960 | 100% | ||
marjuki95 | 0 | 234,247,745 | 100% | ||
gogogadget | 0 | 2,909,179,019 | 100% | ||
troyvandeventer | 0 | 362,333,987 | 100% | ||
camelot | 0 | 1,259,020,812 | 100% | ||
lovecoins | 0 | 357,102,817 | 100% | ||
sportsprediction | 0 | 327,951,540 | 100% | ||
magnetite | 0 | 369,931,294 | 100% | ||
coins4me | 0 | 28,212,852,901 | 100% | ||
kzollove | 0 | 357,087,763 | 100% | ||
genericusrr | 0 | 342,493,615 | 100% | ||
fathersmuck | 0 | 364,354,489 | 100% | ||
mutaz | 0 | 0 | 0% | ||
lagisnotgood | 0 | 117,986,896 | 100% | ||
dnjsgkr11 | 0 | 0 | 100% | ||
matiasrodrigo | 0 | 0 | 100% | ||
fahrullah | 0 | 0 | 100% | ||
mohdmohsin | 0 | 0 | 100% |
Hey @furion, is there a way to query the mongoDB using SQL? I'm not familiar with the mongoDB shell or python, etc...
author | brianjuice |
---|---|
permlink | re-furion-getting-started-with-steemdata-20170719t053058577z |
category | steemdata |
json_metadata | {"tags":["steemdata"],"users":["furion"],"app":"steemit/0.1"} |
created | 2017-07-19 05:31:00 |
last_update | 2017-07-19 05:31:00 |
depth | 1 |
children | 0 |
last_payout | 2017-07-26 05:31:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 118 |
author_reputation | 642,950,894,905 |
root_title | "Getting started with SteemData" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 8,942,941 |
net_rshares | 0 |
This is great stuff. Thanks @furion
author | eroche |
---|---|
permlink | re-furion-getting-started-with-steemdata-20170308t091529230z |
category | steemdata |
json_metadata | {"tags":["steemdata"],"users":["furion"],"app":"steemit/0.1"} |
created | 2017-03-08 09:15:27 |
last_update | 2017-03-08 09:15:27 |
depth | 1 |
children | 0 |
last_payout | 2017-03-31 20:51:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 35 |
author_reputation | 70,759,290,299,941 |
root_title | "Getting started with SteemData" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,671,233 |
net_rshares | 0 |
I am not sure I understand it correctly.. Is SteemData a db interface to steem blockchain? Can it read data from and write to locally running steem node?
author | hr1 |
---|---|
permlink | re-furion-getting-started-with-steemdata-20170301t155710730z |
category | steemdata |
json_metadata | {"tags":["steemdata"],"app":"steemit/0.1"} |
created | 2017-03-01 15:57:09 |
last_update | 2017-03-01 15:57:09 |
depth | 1 |
children | 2 |
last_payout | 2017-03-31 20:51:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 153 |
author_reputation | 7,226,856,136,834 |
root_title | "Getting started with SteemData" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,621,470 |
net_rshares | 15,357,220,973 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
ripplerm | 0 | 15,357,220,973 | 100% | ||
shreyasgune | 0 | 0 | 100% |
if i understand correctly, it's just an independent database, where the data on blockchain is continuously being copied into it.
author | ripplerm |
---|---|
permlink | re-hr1-re-furion-getting-started-with-steemdata-20170301t162737665z |
category | steemdata |
json_metadata | {"tags":["steemdata"],"app":"steemit/0.1"} |
created | 2017-03-01 16:27:33 |
last_update | 2017-03-01 16:27:33 |
depth | 2 |
children | 1 |
last_payout | 2017-03-31 20:51:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 128 |
author_reputation | 12,900,481,895,884 |
root_title | "Getting started with SteemData" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,621,624 |
net_rshares | 0 |
that is correct
author | furion |
---|---|
permlink | re-ripplerm-re-hr1-re-furion-getting-started-with-steemdata-20170301t163832769z |
category | steemdata |
json_metadata | {"tags":["steemdata"],"app":"steemit/0.1"} |
created | 2017-03-01 16:38:33 |
last_update | 2017-03-01 16:38:33 |
depth | 3 |
children | 0 |
last_payout | 2017-03-31 20:51:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 15 |
author_reputation | 116,503,940,714,958 |
root_title | "Getting started with SteemData" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,621,687 |
net_rshares | 0 |
Hey, I try to not be annoying but I'm not that smart so I need to ask questions. Why is it that some "active_votes.rshares" are stored as strings and some as integers? any way you could fix that, it really messes with the results when I try get the most upvoted post etc.
author | idikuci |
---|---|
permlink | re-furion-getting-started-with-steemdata-20180328t113244146z |
category | steemdata |
json_metadata | {"tags":["steemdata"],"app":"steemit/0.1"} |
created | 2018-03-28 11:34:30 |
last_update | 2018-03-28 11:34:30 |
depth | 1 |
children | 0 |
last_payout | 2018-04-04 11:34:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 274 |
author_reputation | 13,137,774,143,957 |
root_title | "Getting started with SteemData" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 47,076,146 |
net_rshares | 0 |
Exciting stuff. Thank you for all your work on this. An ER diagram would be very helpful. I would like to see the internal progress of the tables and the foreign keys.
author | jamesc |
---|---|
permlink | re-furion-getting-started-with-steemdata-20170228t151946832z |
category | steemdata |
json_metadata | {"tags":["steemdata"],"app":"steemit/0.1"} |
created | 2017-02-28 15:19:45 |
last_update | 2017-02-28 15:19:45 |
depth | 1 |
children | 1 |
last_payout | 2017-03-31 20:51:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 170 |
author_reputation | 11,900,157,451,513 |
root_title | "Getting started with SteemData" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,613,688 |
net_rshares | 478,142,495,407 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
christoph3 | 0 | 9,368,181,808 | 100% | ||
furion | 0 | 289,439,251,827 | 100% | ||
ausbitbank | 0 | 136,809,533,439 | 100% | ||
krystle | 0 | 36,889,010,711 | 100% | ||
dirty.hera | 0 | 190,808,827 | 100% | ||
steemleak | 0 | 5,026,125,088 | 100% | ||
johnthehoan | 0 | 303,435,124 | 100% | ||
mestyz | 0 | 116,148,583 | 100% |
Right now the structure is completely flat (as mongo is Document based db, it is very flexible in structure and nesting). I will be adding links between collections in future. So basically, there are these collections, without relationships between them (yet): ``` Operations AccountOperations PriceHistory Posts Accounts ```
author | furion |
---|---|
permlink | re-jamesc-re-furion-getting-started-with-steemdata-20170228t173334679z |
category | steemdata |
json_metadata | {"tags":["steemdata"],"app":"steemit/0.1"} |
created | 2017-02-28 17:33:33 |
last_update | 2017-02-28 17:33:57 |
depth | 2 |
children | 0 |
last_payout | 2017-03-31 20:51:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 4.265 HBD |
curator_payout_value | 1.408 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 326 |
author_reputation | 116,503,940,714,958 |
root_title | "Getting started with SteemData" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,614,441 |
net_rshares | 33,820,671,419,047 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
jamesc | 0 | 3,462,233,997,331 | 9% | ||
abit | 0 | 29,870,582,920,358 | 100% | ||
abcd | 0 | 3,854,353,944 | 100% | ||
escrow | 0 | 572,484,566 | 100% | ||
christoph3 | 0 | 9,368,181,808 | 100% | ||
furion | 0 | 289,717,168,538 | 100% | ||
ausbitbank | 0 | 136,809,533,439 | 100% | ||
krystle | 0 | 36,889,010,711 | 100% | ||
rouketas | 0 | 50,010,236 | 100% | ||
dirty.hera | 0 | 190,808,827 | 100% | ||
steemleak | 0 | 5,026,125,088 | 100% | ||
johnthehoan | 0 | 303,435,124 | 100% | ||
deadmosco | 0 | 4,035,413,896 | 100% | ||
mestyz | 0 | 116,148,583 | 100% | ||
radicalrebelove | 0 | 921,826,598 | 100% |
Thanks for all your work.
author | team101 |
---|---|
permlink | re-furion-getting-started-with-steemdata-20170228t152450573z |
category | steemdata |
json_metadata | {"tags":["steemdata"],"app":"steemit/0.1"} |
created | 2017-02-28 15:25:00 |
last_update | 2017-02-28 15:25:00 |
depth | 1 |
children | 0 |
last_payout | 2017-03-31 20:51:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 25 |
author_reputation | 12,700,047,182,916 |
root_title | "Getting started with SteemData" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,613,708 |
net_rshares | 0 |
I'm trying to kickstart the use of the #steemdev tag. Your post would fit well in that category.
author | transisto |
---|---|
permlink | re-furion-getting-started-with-steemdata-20170301t064256616z |
category | steemdata |
json_metadata | {"tags":["steemdev","steemdata"],"app":"steemit/0.1"} |
created | 2017-03-01 06:42:54 |
last_update | 2017-03-01 06:42:54 |
depth | 1 |
children | 1 |
last_payout | 2017-03-31 20:51:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 96 |
author_reputation | 330,357,940,720,833 |
root_title | "Getting started with SteemData" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,618,748 |
net_rshares | 15,357,220,973 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
ripplerm | 0 | 15,357,220,973 | 100% |
awesome, thank you. I've added the tag.
author | furion |
---|---|
permlink | re-transisto-re-furion-getting-started-with-steemdata-20170301t075703229z |
category | steemdata |
json_metadata | {"tags":["steemdata"],"app":"steemit/0.1"} |
created | 2017-03-01 07:57:03 |
last_update | 2017-03-01 07:57:03 |
depth | 2 |
children | 0 |
last_payout | 2017-03-31 20:51:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 39 |
author_reputation | 116,503,940,714,958 |
root_title | "Getting started with SteemData" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,619,032 |
net_rshares | 0 |
Well considering that I haven't done any real programming since the day's of Q'Basic and DOS....I kind of follow this. Lol I just might need to brush up my skillset to really understand it.
author | troyvandeventer |
---|---|
permlink | re-furion-getting-started-with-steemdata-20170228t235144601z |
category | steemdata |
json_metadata | {"tags":["steemdata"],"app":"steemit/0.1"} |
created | 2017-02-28 23:51:48 |
last_update | 2017-02-28 23:52:24 |
depth | 1 |
children | 0 |
last_payout | 2017-03-31 20:51:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 190 |
author_reputation | 85,611,991,768 |
root_title | "Getting started with SteemData" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,616,848 |
net_rshares | 0 |