Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Save Google NGram result as .csv

Tags:

csv

n-gram

Is there an easy way, to save a Google Ngram result http://books.google.com/ngrams/ as a csv?

So that I get a list like

1900 peace 500000times
1901 peace 540000times 

and so on?

I downloaded their raw data but have no idea how to handle it. When I open those csv in OpenOffice, I can't even see a single word.

like image 725
JoergP Avatar asked Oct 16 '25 14:10

JoergP


1 Answers

It can be done, and it's actually quite easy. Generate the graph you want on the Google Ngram viewer, then use your browser's function to show the page source code (this might be hidden under advanced or developer options). Then in the code (probably on line 297), you will find the data simply listed. You can use any word processor and/or spreadsheet software to clean up the data and export them as CSV.

like image 123
Josh Avatar answered Oct 18 '25 09:10

Josh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!