Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Values in author array are filled with wrong values such as dates #7

Open
anlausch opened this issue Oct 26, 2017 · 1 comment
Open

Comments

@anlausch
Copy link

Hi,

I recently noticed that the resultsObj returned when searching is containing wrong values in the authors array.

Do you know anything regarding this?
Thank you in advance!

Version: google-scholar@1.5.1

scholar.search("Test")
    .then(resultsObj => {...

returns:

{
  "results": [
    {
      "title": "Alternative to mental hospital treatment: I. Conceptual model, treatment program, and clinical evaluation",
      "url": "http://archpsyc.jamanetwork.com/article.aspx?articleid=492295",
      "authors": [
        {
          "name": "LI Stein",
          "url": ""
        },
        {
          "name": "MA Test�- Archives of general psychiatry",
          "url": ""
        },
        {
          "name": "1980",
          "url": ""
        }
      ],
      "description": "METHODS The experiment was designed to study the effects on patient functioning during a 14-month intensive community-treatment program and to evaluate patient functioning afterward when patients were transferred to traditional community programs. To accomplish ",
      "citedCount": 0,
      "citedUrl": "https://scholar.google.comjavascript:void(0)",
      "relatedUrl": "",
      "pdf": "http://www.psychodyssey.net/wp-content/uploads/2016/01/PACT.pdf"
    }, ..
@hcientist
Copy link
Member

Hey thanks very much for taking the time to report this, and for using the package! Unfortunately (?) I think that Google Scholar got a facelift recently, so it naturally broke my scraping. Probably I need to update the parsing of the authornames /-: if you have experience with this, please feel free to help out. I will try my best to get to it, but I have a lot on my plate right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants