Code Monkey home page Code Monkey logo

tempas2archivespark's Introduction

This project contains the required components for ArchiveSpark to enter a Web archive (the Internet Archive's Wayback Machine) through temporal search results provided by Tempas (v2).

It includes an ArchiveSpark DataSpec, named TempasWaybackSpec, which can be configured using the following parameters:

  • query (String): The query keywords.
  • from (Int, optional): The begin year of the query time interval.
  • to (Int, optional): The begin year of the query time interval.
  • pages (Int, optional): How many pages to receive, i.e., the level of parallelism.
  • resultsPerPage (Int, optional): How many results per page.

E.g., TempasWaybackSpec("obama", from = 2005, to = 2012, pages = 10, resultsPerPage = 50):

val rdd = ArchiveSpark.load(sc, TempasWaybackSpec("obama", from = 2005, to = 2012, pages = 10, resultsPerPage = 50))

An example is provided as Jupyter notebook under: CompareMenus-DMvsEuro. In this toy study we compare restaurant prices and find that they actually increased when the Euro was introduced in Germany.

Usage

To use this library, we recommend an interactive environment, such as Jupyter in combination with Toree to run Spark instructions on a cluster.

Please make sure that you have both ArchiveSpark as well as this Tempas2ArchiveSpark library in your classpath.

To build a JAR file of this project, we recommend to use SBT:

git clone https://github.com/helgeho/Tempas2ArchiveSpark.git
cd Tempas2ArchiveSpark
sbt assembly

Now the resulting JAR file should be located under Tempas2ArchiveSpark/target/tempas-archivespark-assembly-1.0.0.jar.

tempas2archivespark's People

Contributors

helgeho avatar

Watchers

 avatar

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.