Giter VIP home page Giter VIP logo

epo-download's Introduction

epo-download

Build Status

Usage

A command line tool for downloading patent documents from the EPO and saving as a PDF. Bookmarks to patent sections (Drawings, Claims, etc.) are added when indicated in upstream data.

>epo-download US7654321
...
>ls
...
US7654321B2.pdf
...

Various options can be listed by typing --help. Citations can be provided in a variety of formats, including some poorly formatted, but common, ways of representing a patent document. These citations can be provided as a list on the command line or, if the csv flags are set, from a given column of a CSV file.

Requires a consumer and secret key from the EPO OPS developer console to be passed in as command line parameters or in a file, defaulting to ~/.patent-api-config. The file should look like this:

[EPO]
consumerKey=XXXXX
secretKey=XXXXXX

Credentials can be obtained by registering for a free account from https://developers.epo.org, selecting "My Apps" from the menu bar, and adding a new app. Free accounts have rate and download caps. The patent-api package used attempts to rate limit all requests according to EPO usage guidance.

Assembly of PDFs requires the Ghostscript "gs" executable to be available in the PATH and able to write to into the working directory.

Building on MacOS Sierra

Using Homebrew:

brew install haskell-stack ghostscript
git clone https://github.com/fros1y/epo-download
cd epo-download
stack setup
stack install

Building on Linux

Not tested, but should be possible by installing Haskell stack and ghostscript per your distribution's package managers and following approach above.

Pull requests to make more portable and/or allow for builds on Windows/Linux welcome.

epo-download's People

Contributors

fros1y avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

fieri

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.