VT-CHCI / google-scholar

nodejs module for searching google scholar
MIT License
20 stars 11 forks source link

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

Open anlausch opened 6 years ago

anlausch commented 6 years ago

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 commented 6 years ago

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.