Giter Club home page Giter Club logo

export-answerhub-data's Introduction

export-answerhub-data

CircleCI codecov david-deps

Export question data from Answerhub using this CLI!

Can generate data reports in CSV or JSON format!

Filter by space, topics, and question creation date!

Install

npm install -g export-answerhub-data

CLI How To

Usage: export-answerhub-data [options] <host> <username> <password> [start] [end]

Options:
  -V, --version               output the version number
  -t, --topics <topics>       A comma separated list of topics to filter questions by. If multiple topics are supplied, the question must be ALL topics to be returned.
  -s, --space <space>         Filter by questions belonging to a certain space. 
  -p, --page-size <pageSize>  The page size to use for each request. Lower it if the tool seems to fail or be slow. (default: 15)
  -f, --file-type <format>    Export the data in a particular format (default is csv). 
  	 Formats available: csv,json
  -h, --help                  output usage information

[start] and [end] represent date range filters.
They must be provided in ISO-8061 format.
Examples:
  2008-09-15
  2008-09-15T15:53:00
  2008-09-15T15:53:00+05:00

Example

export-answerhub-data -f json -p 30 apidocs.cloud.answerhub.com answerhub test123

The above to will write question data in JSON format from the Answehub Demo API, using a page size of 30.

FAQ

The tool doesn't seem to be working or is crashing!

In my experience, an Answerhub API server can be fickle and unstable. I've seen the server return 500 if you send too many requests at once, or just from bad data that happened to be in the requested page.

For this, try lowering the concurrency option (-c) and/or the page size (-p). Setting your page size to 1 will ensure you get the most data, but it will take longer.

My Answerhub installation has a data export, why would I use this?

Again, in my experience, the data export is not always available depending upon what version of you are on. For example, data export is available in 1.8, but whenever I upgraded to 1.9, it disappeared. This is also just easier, especially for a developer!

Issues

If you are having problems or believe you found a bug, please make an issue. Do not include sensitive details such as your Answerhub credentials.

export-answerhub-data's People

Contributors

zerkz avatar dependabot[bot] 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.