Skip to content

Instantly share code, notes, and snippets.

View ClaudiuPapasteri's full-sized avatar

Claudiu Papasteri ClaudiuPapasteri

  • University of Bucharest
  • Bucharest
View GitHub Profile
@ClaudiuPapasteri
ClaudiuPapasteri / scrape_scholargooglesearch.R
Last active March 25, 2023 18:40
Scrape Google Scholar search
#' Scrape Google Scholar search
#'
#' @description Web scrape pages with scholar Google Scholar search results of a defined term.
#'
#' @param term String representing the Google Scholar search term. May include boolean search operators (e.g., "AND"), word search operators (e.g., "intext:") and symbol search operators (e.g., quotation marks " ").
#' @param pages Numeric vector of integer values representing the Google Search page numbers that need to be scraped.
#' @param crawl_delay Numeric vector of length one representing the number of seconds for the base crawl delay. This avoids being blocked by HTTP error 429 or Captcha.
#' @param ... Any additional httr config to use throughout the session. Using a Proxy to not be IP flagged and blocked is advised.
#'
#' @return Data frame with scraped results of Google Scholar search using term.
@ClaudiuPapasteri
ClaudiuPapasteri / SyncKeyTimeLog.m
Created May 13, 2019 15:24
Sync Shimmer through key and time logger
function SyncKeyTimeLog(logFileName)
% SyncKeyTimeLog(logFileName)
%
% Logs each key press using a figure call-back. The key name and press time
% are both recorded, with the most recent data being displayed on the
% figure.
%
% INPUTS:
% logFileName = string = save file name (optional)
%