Giter VIP home page Giter VIP logo

Comments (1)

jxshen311 avatar jxshen311 commented on July 18, 2024

Hello - when I use get_complete_authors it returns NA for the author column (even when I try and just do one article). In running the function on its own, I am wondering if the issue is in get_author (nested within get_complete_author)? I am getting a 404 error with the current URL formatting, it looks like google may have changed their formatting?

Here is the code I am using: id = "g5LA4-oAAAAJ&hl=en" pubs <- scholar::get_publications(id=id, pagesize=n)

df <-pubs %>% rowwise() %>% dplyr::mutate( author = case_when( str_ends(author, "...") ~ scholar::get_complete_authors(id = id, pubid = pubid, delay= 1), TRUE ~ author ))

Hey first of all, thanks for your codes! You should use double back slashes (\\) to escape . in R string format. After changing this, your code works for me.

However, I do get "Google is rate limiting you for making too many requests too quickly." still when I try to get_complete_authors for a large data frame.

df <- pubs %>%
  rowwise() %>%
  dplyr::mutate(
    author = case_when(
      str_ends(author, "\\.\\.\\.") ~ scholar::get_complete_authors(id = id, pubid = pubid, delay= 3),
      TRUE ~ author))

Hope this helps.

from scholar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.