官术网_书友最值得收藏!

  • Python Social Media Analytics
  • Siddhartha Chatterjee Michal Krystyanczuk
  • 182字
  • 2021-07-15 17:24:52

Defining API

A widely used term, API (Application Programming Interface) is defined as a set of instructions and standards to access a web based software application. But what does it mean in real life? Firstly, APIs allow users to send a request for a particular resource, such as Facebook or Twitter , and receive some data in response. It is worth noting that all API providers fix some limitations on the quantity or type of data which users can obtain. APIs give access data processing resources, such as AlchemyAPI that receives in a request verbatim (textual data) and sends in response all results of the analysis, such as nouns, verbs, entities, and so on. In our case, the APIs are used either to get data from social networks or to execute some complex processing on them.

In order to access and manipulate APIs, we have to install the urllib2 library:

pip3 install urllib2

In some cases, if you fail to perform the installation. You can also try using the request library, which is compatible with Python 2.x and 3.x.

pip3 install request
主站蜘蛛池模板: 遂宁市| 城口县| 乌什县| 博白县| 会宁县| 乡宁县| 芦溪县| 沙坪坝区| 滁州市| 香格里拉县| 阿合奇县| 海门市| 湘潭市| 南木林县| 图木舒克市| 隆化县| 乐平市| 松溪县| 三门县| 禹城市| 滨海县| 山阳县| 麦盖提县| 广宗县| 那曲县| 鹤山市| 柳州市| 舟山市| 阳泉市| 滦平县| 罗江县| 天峨县| 江山市| 珠海市| 长子县| 正阳县| 寻甸| 岳阳县| 庆城县| 泰和县| 南丰县|