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 +4 -4
- data/README.md +31 -2
- data/lib/neo4apis/cli/twitter.rb +4 -0
- data/neo4apis-twitter.gemspec +1 -1
- metadata +1 -2
- data/config/twitter.yml +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 46d2c081070478b95ab0e5e32e10c4bd6eea7f9c
|
|
4
|
+
data.tar.gz: ebde68cef9e0f7fc048bd3e219e3d4fdb156eab9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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`
|
data/lib/neo4apis/cli/twitter.rb
CHANGED
|
@@ -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
|
data/neo4apis-twitter.gemspec
CHANGED
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.
|
|
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