Giter Club home page Giter Club logo

waves-of-words's Introduction

Waves of Words: Tools for studying Australia's past

A suite of functions for querying Trove and extracting useful results in R.

Usage

This is not a package, just a script with some useful functions and a schema for a corresponding postgres database.

To use these scripts, you need to have access to a postgresql database. If you install postgres on your machine, it is easy to set up a local database to store your research data.

Once you have created the database, simply run create_wow_db.pgsql to create the necessary tables.

Then open an R session, using RStudio or whichever framework you prefer. You will need a Trove API key to access Trove, and you will need to know the credentials for connecting to your postgres database. Use source('helper_functions.R') to load the functions.

The main functions are:

  • simpleSearch() allows you to query the database, returning the first twenty results of your query to test it out.
  • countResults() returns the number of hits for your search query.
  • harvest() allows you to harvest results from Trove directly into memory. This is good if you have a smaller number of results, and want to work with them directly in R.
  • harvest_into_db() downloads articles from Trove, and inserts them into your Postgres database.

Author

  • Michael Falk

Licence

MIT Licence (see attached licence file)

waves-of-words's People

Contributors

michaelgfalk avatar

Watchers

 avatar

Forkers

waves-of-words

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.