6
$\begingroup$

How can I save all citations from a Google Scholar search? For instance, in a search for "Radon transformation", there are about 35,500 results. I want to download all citations into a string - is there a simple way to get Mathematica to do that? (And sorry, no, I haven't tried anything yet. Not sure where to start.)

$\endgroup$
6
  • 1
    $\begingroup$ That surely would be against the fair use policy, wouldn't it? $\endgroup$
    – rhermans
    Oct 13, 2015 at 17:39
  • $\begingroup$ @rhermans I don't know - I haven't checked that. I am certainly not intentionally trying to do something that breaks their rules - I figured it would be fair to try. If it is against fair use, then never mind. $\endgroup$
    – GregH
    Oct 13, 2015 at 17:47
  • $\begingroup$ A few tens of queries surely are fine but 35K will make you noticed. $\endgroup$
    – rhermans
    Oct 13, 2015 at 17:48
  • $\begingroup$ The policy states "Don’t misuse our Services. For example, don’t interfere with our Services or try to access them using a method other than the interface and the instructions that we provide." I was hoping to use MMA to automate the "interface interaction" process, but maybe that violates the policy. $\endgroup$
    – GregH
    Oct 13, 2015 at 18:11
  • 4
    $\begingroup$ @rhermans, In September 2014, the SDNY upheld TVEye’s affirmative defense of fair use with respect to its core function of indexing news clips in a searchable database. The court reasoned that this indexing function is transformative because it “converts copyrighted works into a research tool to further learning.” $\endgroup$ Oct 13, 2015 at 20:52

1 Answer 1

5
$\begingroup$

This could get you strated

gsq[str_String] := Block[{url},
  url = "https://scholar.google.co.uk/scholar?hl=en&q=" <> 
    URLEncode[str] <> "&btnG=&as_sdt=1%2C5&as_sdtp=";
  Cases[
   Cases[
    Import[url, "XMLObject"]
    , XMLElement["div", {"id" -> "gs_ccl", "role" -> "main"}, ___], 
    Infinity]
   , XMLElement["h3", {"class" -> "gs_rt"}, ___], Infinity]
  ]

Use "inspect element" in your browser to understand the div ids.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.