Socket
Socket
Sign inDemoInstall

twitter-ebooks-corpus-builder

Package Overview
Dependencies
71
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

twitter-ebooks-corpus-builder

Accepts json, csv, and txt input and after backing up a twitter account will create a single txt corpus best for eBooks twitter bot use.


Version published
Maintainers
1
0
Install size
4.52 MB

Weekly downloads

Readme

Source

Twitter eBooks Corpus Builder

Accepts json, csv, and txt input and after optionally backing up a twitter account will create a single txt corpus best for eBooks twitter bot use.

Quick Start

var twitterCorpus = require('twitter-ebooks-corpus-builder');
var path = require('path');


twitterCorpus(
  [
    path.join(__dirname, './input/twitterAccountName.csv'),
    path.join(__dirname, './input/twitterAccountName.json'),
    path.join(__dirname, './input/anyFile.txt'),
  ],
  path.join(__dirname, './output.txt'),
  {
    account: 'twitterAccountName',
    consumer_key: '******',
    consumer_secret: '******',
    access_token_key: '******',
    access_token_secret: '******'
  }
);

Installation

npm install twitter-ebooks-corpus-builder

API

var twitterCorpus = require('twitter-ebooks-corpus-builder');

twitterCorpus(inputs[, output][, options])
  • inputs - required
    • absolute path to file, absolute path to directory, or array of absolute paths or directories.
  • output - optional
    • final corpus output. Defaults to output.txt in the directory of your script
  • options - optional
    • if output is null options may be passed in 3rd
    • this is for the twitter api authentication. all 5 are required if you wish to backup the twitter account: account, consumer_key, consumer_secret, access_token_key, access_token_secret

Input File Types

CSV

Assumes a twitter archive csv in which the text data is at index 5. Will properally process any csv which the data is at index 5.

JSON

Assumes a single or array of twitter status objects. Will process any json where the data is on the key of text.

TXT

any flat file where each line is to used in it's entirety

FAQs

Last updated on 24 May 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc