neo4apis-twitter 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4ea71535fbe17e2305b38c9acc1a20c3362ea53
4
- data.tar.gz: d2f2266563615e7adc2c6e1e4f8d59a9c6f18003
3
+ metadata.gz: 46d2c081070478b95ab0e5e32e10c4bd6eea7f9c
4
+ data.tar.gz: ebde68cef9e0f7fc048bd3e219e3d4fdb156eab9
5
5
  SHA512:
6
- metadata.gz: b71ebd8a79a4cb0b8fe966c7dc9abb38a379e183543b100d2b434b128eabf382f5a481c26e1d7d0356165774cd37d56b5105ca20563875cf7062084de396a2ad
7
- data.tar.gz: 4c4ebf38beea41ed436230bfc103bc7f9d50c12ba3fcfcf6b43ac0d62208d6f5705689473ddf42ffcd73420e697eec31eed7afbc1a8edc662fd37fd5d53f05d6
6
+ metadata.gz: 9931b3d7b3f3a335ca4fe7444baa52de7dc281158bcc8f16e24878f87e777a7cd7aca5d9a46d602abf82ec1639a1ef4c3061bfc90ff413f52899d6ccf4fc9608
7
+ data.tar.gz: 4a0df8b4b2a6f323fbbeadc52ff4dc38d1d5a06cfb5b78bc5a54944b1594f05e51ca6ab253f2a8b415afdec7c1642a6c373b490b136c748abc7bda8714570169
data/README.md CHANGED
@@ -1,7 +1,17 @@
1
1
 
2
+ ### Introduction
3
+
2
4
  neo4apis-twitter is a ruby gem for making importing data from twitter to neo4j easy
3
5
 
4
- This adapter supports objects created from the `twitter` gem.
6
+ This adapter supports objects created from the `twitter` gem. Currently supports importing User and Tweet
7
+
8
+ You can either use the gem to write custom ruby code to import data or you can simply use the command-line interface.
9
+
10
+ ### Installation
11
+
12
+ `gem 'neo4apis-twitter'` in your Gemfile or `gem install neo4apis-twitter`
13
+
14
+ #### Ruby code
5
15
 
6
16
  ```ruby
7
17
 
@@ -24,4 +34,23 @@ end
24
34
 
25
35
  ```
26
36
 
27
- Currently supports importing User and Tweet
37
+ #### Command Line
38
+
39
+ Import tweets as a stream:
40
+
41
+ `neo4apis twitter filter TRACK`
42
+
43
+ Import tweets via a search query:
44
+
45
+ `neo4apis twitter search QUERY COUNT`
46
+
47
+ Supports optional arguments from the [twitter API](https://dev.twitter.com/rest/reference/get/search/tweets):
48
+
49
+ `neo4apis twitter search QUERY COUNT --result-type=[mixed|recent|popular]`
50
+
51
+ Supported options:
52
+ * `geocode`
53
+ * `lang`
54
+ * `locale`
55
+ * `result_type`
56
+ * `until`
@@ -12,7 +12,11 @@ module Neo4Apis
12
12
  end
13
13
  end
14
14
 
15
+ option :geocode, type: :string
16
+ option :lang, type: :string
17
+ option :locale, type: :string
15
18
  option :result_type, type: :string
19
+ option :until, type: :string
16
20
  desc "search QUERY COUNT", "Import tweets via a search query"
17
21
  def search(query, count)
18
22
  neo4apis_client.batch do
@@ -3,7 +3,7 @@ $:.unshift lib unless $:.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "neo4apis-twitter"
6
- s.version = '0.2.0'
6
+ s.version = '0.3.0'
7
7
  s.required_ruby_version = ">= 1.9.1"
8
8
 
9
9
  s.authors = "Brian Underwood"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4apis-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Underwood
@@ -47,7 +47,6 @@ extra_rdoc_files: []
47
47
  files:
48
48
  - Gemfile
49
49
  - README.md
50
- - config/twitter.yml
51
50
  - lib/neo4apis-twitter.rb
52
51
  - lib/neo4apis/cli/twitter.rb
53
52
  - lib/neo4apis/twitter.rb
data/config/twitter.yml DELETED
@@ -1,6 +0,0 @@
1
- ---
2
- :consumer_key: iwmENsqBZNAeN07hsrGuGwKMa
3
- :consumer_secret: ioVqcH3pxTrTq5or5cpXdj4WJpUO1ZNjMRr3tmhFg4xT1mOQXa
4
- :access_token: 2776665793-QPDyINltYv3hGa9RjmMeAbxFSHXJ764n0ycOu1E
5
- :access_token_secret: hlxs1wONx6lJ7GLLY0nXm630mv6NzPHOhDlirCvqetCip
6
-