APIs for social scientists: A collaborative review: различия между версиями

Материал из Поле цифровой дидактики
Строка 25: Строка 25:


; https://docs.github.com/en/rest/guides/getting-started-with-the-rest-api?apiVersion=2022-11-28
; https://docs.github.com/en/rest/guides/getting-started-with-the-rest-api?apiVersion=2022-11-28
: This article describes how to use the GitHub REST API using GitHub CLI, JavaScript, or [[curl]].  
: This article describes how to use the GitHub REST API using GitHub CLI, [[JavaScript]], or [[curl]].  
 
 
‎<syntaxhighlight lang="R" line>  
‎<syntaxhighlight lang="R" line>  
# install.packages('pacman')
# install.packages('pacman')
Строка 33: Строка 31:
p_load('jsonlite', 'httr')
p_load('jsonlite', 'httr')
</syntaxhighlight>
</syntaxhighlight>


== ==
== ==

Версия 20:45, 26 сентября 2023



Описание книги В книге представлено множество API социальных сетей и основы их использования. В статье по этой книге собраны примеры API и особенности работы с ними. Код а книге - R
Область знаний NetSci, Информатика, Образование
Год издания 2022
Веб-сайт где можно прочитать книгу или статью https://bookdown.org/paul/apis for social scientists/
Видео запись
Авторы
Среды и средства, на которые повлияла книга R, RStudio, API


Лучшие практики

Например,
First, the Developer Agreement and Policy provide information on what you can and cannot do with the data obtained through the API. It is important for both Open Science practices (e.g. sharing data publicly) and sharing data between individuals within the research group. Please make sure you understand the data redistribution policy. The API provided by Twitter, for example, forbids the redistribution of Twitter Content to third parties. However, academic researchers are permitted to distribute an unlimited number of Tweet IDs and/or User IDs for peer review purposes.

API Meta Ad Library (FaceBook)

 
# install.packages('pacman')
library(pacman)
p_load('httr', 'remotes', 'dplyr',
'ggplot2', 'tidyr', 'Radlibrary', 'dplyr', 'tidyr', 'DT')

GitHub.com API

The GitHub.com API provides a service for interacting with the social coding platform GitHub. A social coding platform is a website that allows users to work on software projects collaboratively. Users can share their work, engage in discussions and track activities of other users and projects. GitHub is currently the largest such platform with more than 50M user accounts (as of January 2022). GitHub’s API allows for retrieving user-generated data from its platform, which is probably of main interest for social scientists. It also provides tools for controlling your account, organizations and projects on the platform in order to automate workflows. This is more of interest for professional software development.

https://docs.github.com/en/rest/guides/getting-started-with-the-rest-api?apiVersion=2022-11-28
This article describes how to use the GitHub REST API using GitHub CLI, JavaScript, or curl.

 
# install.packages('pacman')
library(pacman)
p_load('jsonlite', 'httr')

https://bookdown.org/paul/apis_for_social_scientists/reddit-api.html