## 划重点
– 获取用户的文章列表
通过 steem.Steem.get_account_history 获取用户的动态,从中筛选出文章的 permlink。
再用 steem.Steem.get_content 方法获取每篇文章的详细信息。
其实也可以用 steem.blog.Blog 获取用户所有的文章信息。
## 划重点
– 获取用户的文章列表
通过 steem.Steem.get_account_history 获取用户的动态,从中筛选出文章的 permlink。
再用 steem.Steem.get_content 方法获取每篇文章的详细信息。
其实也可以用 steem.blog.Blog 获取用户所有的文章信息。
家里每年都会种点自己吃的西瓜,最近这几年种的品种都是“黑美人”,西瓜不大,但比以前种的花皮瓜甜,而且不空心。
我以为成功安装python-steem库就可以愉快地玩耍了,这个想法还是太单纯,谁知道在导入steem模块的时候又出现问题了:无法导入winrandom模块。
Elasticsearch is an open source, distributed, RESTful search and analytics engine. It is a full-text search engine that can fast search, stored, and analyze massive amounts of data. Here is the [repository on GitHub](https://github.com/elastic/elasticsearch).
It provides a standard HTTP RESTful APIs and JSON document. It also built clients which available in many programming languages such as Java Python PHP and JavaScrip.
steem-python是steem官方的Python库,今天在Windows系统上安装这个库的时候遇到了一些问题。
安装steem-python的方法是用pip,在cmd里面输命令就可以了:
> python -m pip install steem
但安装过程不是想象中的那样顺利,其中有两个模块安装不了:ujson和pycrypto
出错提示:
> error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: http://landinghub.visualstudio.com/visual-cpp-build-tools
## 划重点
– 字典
字典是Python内置的一种可变的数据结构,也是一种容器,可以放置任意类型的元素,
特点是用 {} 定义,元素以键值对的形式组织,键和值是一一对应的映射关系。
字典的常用操作:创建,访问,更新,删除。
– 列表
列表也是Python中一种可变的数据结构,其元素可以是任意类型,用 [] 定义。
列表的常用操作:创建,访问,添加,删除,切片,排序。