swdyh / goodbye_chatwork Goto Github PK
View Code? Open in Web Editor NEWChatwork(chatwork.com) log downloader
License: MIT License
Chatwork(chatwork.com) log downloader
License: MIT License
Hi.
This program not finish with an error.
Please help.
$goodbye_chatwork -i [email protected] @ -p XXXXXXXX
2019-01-05T00:56:07+09:00 login as [email protected] ...
/Library/Ruby/Gems/2.3.0/gems/goodbye_chatwork-0.0.8/lib/goodbye_chatwork.rb:41:in login': no token (RuntimeError) from /Library/Ruby/Gems/2.3.0/gems/goodbye_chatwork-0.0.8/bin/goodbye_chatwork:47:in
<top (required)>'
from /usr/local/bin/goodbye_chatwork:22:in load' from /usr/local/bin/goodbye_chatwork:22:in
Thank you.
First, thank you to release the app let me download chatwork's log so much easily.
Now I'm archiving the current log with -x option and figured out that the app seems to download same files repeatedly.
As far as I saw, it seems do loop over 40 times per one file.
I'm not sure whether this behavior is correct or not and so want to question on this issue.
Thanks.
goodbye_chatwork raised RuntimeError: no token
while trying to get access token.
at lib/goodbye_chatwork.rb#L41.
Below is full traces.
% goodbye_chatwork -i [email protected] -p my_password
2017-01-04T01:20:57+09:00 login as [email protected] ...
bundler: failed to load command: goodbye_chatwork (/Users/hirokishirai/projects/cw/vendor/bundle/ruby/2.3.0/bin/goodbye_chatwork)
RuntimeError: no token
/Users/hirokishirai/projects/cw/vendor/bundle/ruby/2.3.0/gems/goodbye_chatwork-0.0.5/lib/goodbye_chatwork.rb:41:in `login'
/Users/hirokishirai/projects/cw/vendor/bundle/ruby/2.3.0/gems/goodbye_chatwork-0.0.5/bin/goodbye_chatwork:47:in `<top (required)>'
/Users/hirokishirai/projects/cw/vendor/bundle/ruby/2.3.0/bin/goodbye_chatwork:23:in `load'
/Users/hirokishirai/projects/cw/vendor/bundle/ruby/2.3.0/bin/goodbye_chatwork:23:in `<top (required)>'
By the environment of Windows10.
The PDF file downloaded using goodbye_chatwork,
I can't read and embedded font is lacking.
I use Chatwork(Not KDDI Chatwork for enterprises)
OS is by the Windows10Pro environment for me.
Goodbye_chatwork is being used.
The text character can normally be downloaded as a CSV file.
However
When a PDF file downloads it, it's embedded and is lacking in a font.
It isn't possible to read.
I'm in trouble about this problem.
The command
As follows.
$ goodbye_chatwork -i [email protected] -p your_password -x all -d path/to/log/jikken
Environment :Windows10 Pro
Ruby :Ver2.2.6P396
PDF Reader :
AcrobatX Pro (Ver10.1.16) and ReaderXI (Ver11.0.9)
In Chrome (56.0.2924.87 64-bit).
CASE-A
Original PDF file.
No.1 converted to PDF in Libre Office5.2 In Writer
No.2 converted to PDF in MSWord2010
Filename
1.libre_pdf_yamaneko
2.word_pdf_yamaneko
CASE-B(in trouble)
Dounloaded by boodbye_chatwork
As far as downloaded PDF was opened.
A property has been just seen.
It's embedded and is lacking in a sub-font.
Filename
3.libre_pdf_yamaneko_gb
4.word_pdf_yamaneko_gb
CASE-C(OK)
The same PDF file is from a file list of ChatWork.
It was downloaded directly.
(Embedded subset) is shown to a thing.
I could read accurately.
Filename
5.libre_pdf_yamaneko_direct
6.word_pdf_yamaneko_direct
PS
The PDF file which was normally downloaded using goodbye_chatwork
can be read in MAC OS Sierra.
libre_pdf_yamaneko.pdf
libre_pdf_yamaneko_direct.pdf
libre_pdf_yamaneko_gb.pdf
word_pdf_yamaneko.pdf
word_pdf_yamaneko_direct.pdf
word_pdf_yamaneko_gb.pdf
HI, thanks for this great gem.
We are using Japanese in the chatwork,
the log generated was character corruption. (the content and files both)
How can I fix it by my own? or any function may be apply to solve this problem?
Thanks you.
goodbye_chatwork raised NoMethodError: undefined method `[]' for nil:NilClass while trying to get signed in results.
at lib/goodbye_chatwork.rb#L52.
Below is full traces.
% goodbye_chatwork -i [email protected] -p hogefuga
2017-03-16T12:44:20+09:00 login as [email protected]
2017-03-16T12:44:20+09:00 load initial data...
bundler: failed to load command: goodbye_chatwork (/Users/hirokishirai/projects/goodbye_chatwork/vendor/bundle/ruby/2.3.0/bin/goodbye_chatwork)
NoMethodError: undefined method `[]' for nil:NilClass
/Users/hirokishirai/projects/goodbye_chatwork/vendor/bundle/ruby/2.3.0/bundler/gems/goodbye_chatwork-cd7f1137f57c/lib/goodbye_chatwork.rb:52:in `init_load'
/Users/hirokishirai/projects/goodbye_chatwork/vendor/bundle/ruby/2.3.0/bundler/gems/goodbye_chatwork-cd7f1137f57c/lib/goodbye_chatwork.rb:42:in `login'
/Users/hirokishirai/projects/goodbye_chatwork/vendor/bundle/ruby/2.3.0/bundler/gems/goodbye_chatwork-cd7f1137f57c/bin/goodbye_chatwork:47:in `<top (required)>'
/Users/hirokishirai/projects/goodbye_chatwork/vendor/bundle/ruby/2.3.0/bin/goodbye_chatwork:23:in `load'
/Users/hirokishirai/projects/goodbye_chatwork/vendor/bundle/ruby/2.3.0/bin/goodbye_chatwork:23:in `<top (required)>'
First, Thank you very much for offering me a so convenient tool.
I downloaded the room where it has 4425 messages.
But, even if it has passed for 4 hours, it doesn't finish.
The capacity of the CSV file was also 3.5MB.
When a CSV file was seen using "tail - f", it seemed to be reading the same message many times.
I aborted a tool by CTRL-C.
I confirmed the phenomenon in several rooms with a little message number.
This phenomenon doesn't occur in the room has 32 messages.
I downloaded the room where it has 4425 messages.
But, even if it has passed for 4 hours, it doesn't finish.
The capacity of the CSV file was also 3.5MB.
When a CSV file was seen using "tail - f", it seemed to be reading the same message many times.
I aborted a tool by CTRL-C.
I confirmed the phenomenon in several rooms with a little message number.
This phenomenon doesn't occur in the room has 32 messages.
It was as follows in 44 messages of room.
1 2016/9/20 18:17 Author A
2 2016/9/27 16:45 Author A
3 2016/9/27 16:45 Author B
4 2016/9/27 16:48 Author A
5 2016/9/27 16:49 Author B
6 2016/9/27 16:50 Author A
7 2016/9/27 18:25 Author A
8 2016/9/27 18:25 Author B
9 2016/9/27 18:26 Author A
10 2016/9/28 13:13 Author A
11 2016/9/28 13:13 Author A
12 2016/9/30 9:25 Author A
13 2016/11/24 20:02 Author B
14 2016/11/24 20:05 Author A
15 2016/11/29 10:03 Author B
16 2016/11/29 10:04 Author A
17 2016/11/29 10:05 Author B
18 2016/11/29 10:09 Author B
19 2016/11/29 10:09 Author B
20 2016/11/29 10:09 Author A
21 2016/11/29 10:57 Author B
22 2016/11/29 10:57 Author B
23 2016/11/29 11:17 Author B
24 2016/12/6 20:34 Author A
25 2016/12/7 9:08 Author B
26 2016/12/7 9:09 Author A
27 2016/12/7 9:11 Author B
28 2016/12/7 9:11 Author B
29 2016/12/7 9:12 Author A
30 2016/12/9 18:47 Author A
31 2016/12/29 19:42 Author B
32 2016/12/29 19:52 Author B
33 2017/1/4 14:43 Author B
34 2017/2/1 9:01 Author B
35 2017/2/1 9:11 Author A
36 2017/2/1 9:12 Author B
37 2017/2/14 17:27 Author A
38 2017/2/14 17:49 Author A
39 2017/6/28 12:32 Author B
40 2017/6/28 12:51 Author A
41 2016/9/19 19:02 Author A
1 2016/9/20 18:17 Author A
2 2016/9/27 16:45 Author A
3 2016/9/27 16:45 Author B
4 2016/9/27 16:48 Author A
5 2016/9/27 16:49 Author B
6 2016/9/27 16:50 Author A
7 2016/9/27 18:25 Author A
8 2016/9/27 18:25 Author B
9 2016/9/27 18:26 Author A
10 2016/9/28 13:13 Author A
11 2016/9/28 13:13 Author A
12 2016/9/30 9:25 Author A
13 2016/11/24 20:02 Author B
14 2016/11/24 20:05 Author A
15 2016/11/29 10:03 Author B
16 2016/11/29 10:04 Author A
17 2016/11/29 10:05 Author B
18 2016/11/29 10:09 Author B
19 2016/11/29 10:09 Author B
20 2016/11/29 10:09 Author A
21 2016/11/29 10:57 Author B
22 2016/11/29 10:57 Author B
23 2016/11/29 11:17 Author B
24 2016/12/6 20:34 Author A
25 2016/12/7 9:08 Author B
26 2016/12/7 9:09 Author A
27 2016/12/7 9:11 Author B
28 2016/12/7 9:11 Author B
29 2016/12/7 9:12 Author A
30 2016/12/9 18:47 Author A
31 2016/12/29 19:42 Author B
32 2016/12/29 19:52 Author B
33 2017/1/4 14:43 Author B
34 2017/2/1 9:01 Author B
35 2017/2/1 9:11 Author A
36 2017/2/1 9:12 Author B
37 2017/2/14 17:27 Author A
38 2017/2/14 17:49 Author A
39 2017/6/28 12:32 Author B
40 2016/9/19 18:56 Author A
41 2016/9/19 19:02 Author A
1 2016/9/20 18:17 Author A
2 2016/9/27 16:45 Author A
3 2016/9/27 16:45 Author B
4 2016/9/27 16:48 Author A
5 2016/9/27 16:49 Author B
6 2016/9/27 16:50 Author A
7 2016/9/27 18:25 Author A
8 2016/9/27 18:25 Author B
9 2016/9/27 18:26 Author A
10 2016/9/28 13:13 Author A
11 2016/9/28 13:13 Author A
12 2016/9/30 9:25 Author A
13 2016/11/24 20:02 Author B
14 2016/11/24 20:05 Author A
15 2016/11/29 10:03 Author B
16 2016/11/29 10:04 Author A
17 2016/11/29 10:05 Author B
18 2016/11/29 10:09 Author B
19 2016/11/29 10:09 Author B
20 2016/11/29 10:09 Author A
21 2016/11/29 10:57 Author B
22 2016/11/29 10:57 Author B
23 2016/11/29 11:17 Author B
24 2016/12/6 20:34 Author A
25 2016/12/7 9:08 Author B
26 2016/12/7 9:09 Author A
27 2016/12/7 9:11 Author B
28 2016/12/7 9:11 Author B
29 2016/12/7 9:12 Author A
30 2016/12/9 18:47 Author A
31 2016/12/29 19:42 Author B
32 2016/12/29 19:52 Author B
33 2017/1/4 14:43 Author B
34 2017/2/1 9:01 Author B
35 2017/2/1 9:11 Author A
36 2017/2/1 9:12 Author B
37 2017/2/14 17:27 Author A
38 2017/2/14 17:49 Author A
39 2016/9/19 18:39 Author A
40 2016/9/19 18:56 Author A
41 2016/9/19 19:02 Author A
1 2016/9/20 18:17 Author A
2 2016/9/27 16:45 Author A
3 2016/9/27 16:45 Author B
4 2016/9/27 16:48 Author A
5 2016/9/27 16:49 Author B
6 2016/9/27 16:50 Author A
7 2016/9/27 18:25 Author A
8 2016/9/27 18:25 Author B
9 2016/9/27 18:26 Author A
10 2016/9/28 13:13 Author A
11 2016/9/28 13:13 Author A
12 2016/9/30 9:25 Author A
13 2016/11/24 20:02 Author B
14 2016/11/24 20:05 Author A
15 2016/11/29 10:03 Author B
16 2016/11/29 10:04 Author A
17 2016/11/29 10:05 Author B
18 2016/11/29 10:09 Author B
19 2016/11/29 10:09 Author B
20 2016/11/29 10:09 Author A
21 2016/11/29 10:57 Author B
22 2016/11/29 10:57 Author B
23 2016/11/29 11:17 Author B
24 2016/12/6 20:34 Author A
25 2016/12/7 9:08 Author B
26 2016/12/7 9:09 Author A
27 2016/12/7 9:11 Author B
28 2016/12/7 9:11 Author B
29 2016/12/7 9:12 Author A
30 2016/12/9 18:47 Author A
31 2016/12/29 19:42 Author B
32 2016/12/29 19:52 Author B
33 2017/1/4 14:43 Author B
34 2017/2/1 9:01 Author B
35 2017/2/1 9:11 Author A
36 2017/2/1 9:12 Author B
37 2017/2/14 17:27 Author A
38 2016/9/14 18:00 Author B
39 2016/9/19 18:39 Author A
40 2016/9/19 18:56 Author A
41 2016/9/19 19:02 Author A
1 2016/9/20 18:17 Author A
2 2016/9/27 16:45 Author A
3 2016/9/27 16:45 Author B
4 2016/9/27 16:48 Author A
5 2016/9/27 16:49 Author B
6 2016/9/27 16:50 Author A
7 2016/9/27 18:25 Author A
8 2016/9/27 18:25 Author B
9 2016/9/27 18:26 Author A
10 2016/9/28 13:13 Author A
11 2016/9/28 13:13 Author A
12 2016/9/30 9:25 Author A
13 2016/11/24 20:02 Author B
14 2016/11/24 20:05 Author A
15 2016/11/29 10:03 Author B
16 2016/11/29 10:04 Author A
17 2016/11/29 10:05 Author B
18 2016/11/29 10:09 Author B
19 2016/11/29 10:09 Author B
20 2016/11/29 10:09 Author A
21 2016/11/29 10:57 Author B
22 2016/11/29 10:57 Author B
23 2016/11/29 11:17 Author B
24 2016/12/6 20:34 Author A
25 2016/12/7 9:08 Author B
26 2016/12/7 9:09 Author A
27 2016/12/7 9:11 Author B
28 2016/12/7 9:11 Author B
29 2016/12/7 9:12 Author A
30 2016/12/9 18:47 Author A
31 2016/12/29 19:42 Author B
32 2016/12/29 19:52 Author B
33 2017/1/4 14:43 Author B
34 2017/2/1 9:01 Author B
35 2017/2/1 9:11 Author A
36 2017/2/1 9:12 Author B
37 2016/9/14 18:00 Author B
38 2016/9/19 18:39 Author A
40 2016/9/19 18:56 Author A
41 2016/9/19 19:02 Author A
1 2016/9/20 18:17 Author A
2 2016/9/27 16:45 Author A
3 2016/9/27 16:45 Author B
4 2016/9/27 16:48 Author A
5 2016/9/27 16:49 Author B
6 2016/9/27 16:50 Author A
7 2016/9/27 18:25 Author A
8 2016/9/27 18:25 Author B
9 2016/9/27 18:26 Author A
10 2016/9/28 13:13 Author A
11 2016/9/28 13:13 Author A
12 2016/9/30 9:25 Author A
13 2016/11/24 20:02 Author B
14 2016/11/24 20:05 Author A
15 2016/11/29 10:03 Author B
16 2016/11/29 10:04 Author A
17 2016/11/29 10:05 Author B
18 2016/11/29 10:09 Author B
19 2016/11/29 10:09 Author B
20 2016/11/29 10:09 Author A
21 2016/11/29 10:57 Author B
22 2016/11/29 10:57 Author B
23 2016/11/29 11:17 Author B
24 2016/12/6 20:34 Author A
25 2016/12/7 9:08 Author B
26 2016/12/7 9:09 Author A
27 2016/12/7 9:11 Author B
28 2016/12/7 9:11 Author B
29 2016/12/7 9:12 Author A
30 2016/12/9 18:47 Author A
31 2016/12/29 19:42 Author B
32 2016/12/29 19:52 Author B
33 2017/1/4 14:43 Author B
34 2017/2/1 9:01 Author B
35 2017/2/1 9:11 Author A
Regards,
title is all
Please excuse my poor English and github behavior.
First, thank you for your great convinience tool!!
When I run -e option, the downloading time is too long and .csv file has same massages 40 times.
So When I try to run -x option, it is also stuck in a loop that it downloads same (35) files.
It seems same as the issue #22 (or #21), but I cannot solve this problem.
Ubuntu 16.04 LTS, ruby 2.3.1, goodbye_chatwork 0.0.8
Windows 10 Pro 1709, ruby 2.4.2, goodbye_chatwork 0.0.8
Regards,
OS: macOS Sierra 10.12.1
Ruby: 2.3.0
goodbye_chatwork: 0.0.7
Chatwork: KDDI Chatwork for enterprises
Below is full traces.
% goodbye_chatwork -i [email protected] -p hogefuga
2017-03-16T12:44:20+09:00 login as [email protected] ...
2017-06-16T23:50:14+09:00 load initial data...
/Users/hirokishirai/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/goodbye_chatwork-0.0.7/lib/goodbye_chatwork.rb:54:in `init_load': undefined method `[]' for nil:NilClass (NoMethodError)
from /Users/hirokishirai/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/goodbye_chatwork-0.0.7/lib/goodbye_chatwork.rb:43:in `login'
from /Users/hirokishirai/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/goodbye_chatwork-0.0.7/bin/goodbye_chatwork:47:in `<top (required)>'
from /Users/hirokishirai/.rbenv/versions/2.3.1/bin/goodbye_chatwork:23:in `load'
from /Users/hirokishirai/.rbenv/versions/2.3.1/bin/goodbye_chatwork:23:in `<main>'
I'm in trouble about this problem.
login': no token (RuntimeError)
Environment :Windows10 Pro
Ruby :Ver2.2.6P396
goodbye_chatwork 0.0.7
[Github] https://github.com/swdyh/goodbye_chatwork/
I use Chatwork(Not KDDI Chatwork for enterprises)
Below is full traces.
$ goodbye_chatwork -i [email protected] -p my_password
2017-05-01T20:23:00+09:00 login as [email protected]...
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/goodbye_chatwork-0.0.7/lib/goodbye_chatwork.rb:41:in `login': no token (RuntimeError)
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/goodbye_chatwork-0.0.7/bin/goodbye_chatwork:47:in `<top (required)>'
from C:/Ruby22-x64/bin/goodbye_chatwork:22:in `load'
from C:/Ruby22-x64/bin/goodbye_chatwork:22:in `<main>'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.