Skip to content

githublistpack

E. F. Haghish edited this page May 31, 2019 · 3 revisions

v. 1.0.0

Title

githublistpack - mines the GitHub API for Stata repositories

Syntax

githublistpack [ keyword ] [, options ]

Options

option Description
language(str) specifies the programming language of the repository. the default is Stata
in(str) specifies the domain of the search which can be name, description, readme, or all
all shows repositories that lack the pkg and stata.toc files in the search results
duration(num) search time frame in number of days. the default is 1
delay number of miliseconds to let the API rest after each search. the default is 10000 ms
save saves the search results in a data set
replace replaces existing data set
append appends results to an existing data set
created(str) initial date for beginning of the search
pushed(str) initial pushing date of the repository, which is useful for updating the archive
reference(str) initial date. if missing, it is set to "2012.01.01"
perpage(num) maximum number of returned results (check GitHub API limits)
quite avoids output log
debug detailed output log

Description

githublistpack searches for repositories on GitHub within a limited time frame (i.e. duration). It can save and update the results in a data set. It also provides options for narrowing down or expanding the search.

Examples

examples of mining Stata packages on packages

list all GitHub repositories in Stata language

        . githublistpack , language(Stata) append replace   ///
          save("repolist") duration(1) all in(all)          ///
                                        perpage(100)

search for repositories created from 2019 on

        . githublistpack , language(Stata) append replace   ///
          save("update") duration(1) all in(all)            ///
          reference("2019-01-01") perpage(100)

Author

E. F. Haghish
Department of Mathematics and Computer Science (IMADA)
University of Southern Denmark


This help file was dynamically produced by MarkDoc Literate Programming package

Clone this wiki locally