Google Scholar Scraper
// Function to extract data from the page
function scrapeData() {
var citationsContainer = document.getElementById(“citations”);
citationsContainer.innerHTML = “Loading…”;
// URL of the Google Scholar profile
var url = “https://scholar.google.com/citations?user=dvqkwNgAAAAJ&hl=id”;
// Make a GET request to fetch the HTML content
$.get(url, function(data) {
var htmlData = $.parseHTML(data);
// Extract the desired information
var citationsElement = $(htmlData).find(‘#gsc_rsb_st’);
var citations = citationsElement.text();
// Update the citations container
citationsContainer.innerHTML = citations;
});
}
// Call the scrapeData function when the page loads
$(document).ready(function() {
scrapeData();
});
tes