precipice / campfire_export Goto Github PK
View Code? Open in Web Editor NEWExport transcripts and uploaded files from your 37signals Campfire account
License: Apache License 2.0
Export transcripts and uploaded files from your 37signals Campfire account
License: Apache License 2.0
Double checked all issues getting this error.
"Unable to export account: can't modify frozen Fixnum"
Thanks for any help! ~ Kai
Per title. Stack trace:
campfire/wesabe/Development/2007/12/12 ... exporting transcripts /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:560:in `initialize': Operation timed out - connect(2) (Errno::ETIMEDOUT) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:560:in `open' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:560:in `connect' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/timeout.rb:53:in `timeout' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/timeout.rb:93:in `timeout' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:560:in `connect' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:553:in `do_start' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:542:in `start' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:1035:in `request' from /Library/Ruby/Gems/1.8/gems/httparty-0.7.8/lib/httparty/request.rb:69:in `perform' from /Library/Ruby/Gems/1.8/gems/httparty-0.7.8/lib/httparty.rb:390:in `perform_request' from /Library/Ruby/Gems/1.8/gems/httparty-0.7.8/lib/httparty.rb:342:in `get' from /Library/Ruby/Gems/1.8/gems/httparty-0.7.8/lib/httparty.rb:422:in `get' from /Library/Ruby/Gems/1.8/gems/campfire_export-0.0.1/lib/campfire_export.rb:42:in `get' from /Library/Ruby/Gems/1.8/gems/campfire_export-0.0.1/lib/campfire_export.rb:255:in `export_html' from /Library/Ruby/Gems/1.8/gems/campfire_export-0.0.1/lib/campfire_export.rb:230:in `export' from /Library/Ruby/Gems/1.8/gems/campfire_export-0.0.1/lib/campfire_export.rb:190:in `export' from /Library/Ruby/Gems/1.8/gems/campfire_export-0.0.1/lib/campfire_export.rb:157:in `export' from /Library/Ruby/Gems/1.8/gems/nokogiri-1.4.7/lib/nokogiri/xml/node_set.rb:239:in `each' from /Library/Ruby/Gems/1.8/gems/nokogiri-1.4.7/lib/nokogiri/xml/node_set.rb:238:in `upto' from /Library/Ruby/Gems/1.8/gems/nokogiri-1.4.7/lib/nokogiri/xml/node_set.rb:238:in `each' from /Library/Ruby/Gems/1.8/gems/campfire_export-0.0.1/lib/campfire_export.rb:155:in `export' from /Library/Ruby/Gems/1.8/gems/campfire_export-0.0.1/bin/campfire_export:57 from /usr/bin/campfire_export:19:in `load' from /usr/bin/campfire_export:19
-h | --help
-v | --version
-a | --api-key
-s | --subdomain
-d | --directory
--start-date
--end-date
--timezone
--no-html
--no-xml
--no-plaintext
--no-uploads
--quiet
transcript.xml
winds up containing 78 tweet
tags with a bare object reference in them, and then one tweet
tag that looks right. I'm guessing it's a nokogiri parsing path error.
Some days I get the following error Unable to export account: no time information in ""
and the download breaks.
Any ideas what is up with that?
From @indirect:
MH, depending on whether you're using the API, you might also need to allow for descriptions on sounds now
I just noticed a pull request on the campfire library that wesabot uses because they added a description attribute
It is likely that uploads before 2009/8/28 or so which have a ?
in the filename will fail to export and report a 404 error instead. This is due to a problem with S3 filenames.
The script should let people know if they are hitting this bug and should direct them to write [email protected] if they want help getting those files back.
The regex pointing into the uploads directories is probably too specific.
Would be fun and maybe useful to have some stats show up at the end of the export:
Running campfire_export
with Ruby 2.0 or 2.1 gives the following error:
Unable to export account: can't convert Date into String
Shows all images as deleted (that is, 404s) even though they're present on the Campfire servers.
I tried fixing around the version issue but I am still getting the below error.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:212: warning: Insecure world writable dir /usr/local/ActivePerl-5.16/site in PATH, mode 040777
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require': dlopen(/Users/Ravi/.rvm/gems/ruby-1.9.3-p545@global/gems/nokogiri-1.5.11/lib/nokogiri/nokogiri.bundle, 9): Library not loaded: @@HOMEBREW_PREFIX@@/opt/libxml2/lib/libxml2.2.dylib (LoadError) Referenced from: /Users/Ravi/.rvm/gems/ruby-1.9.3-p545@global/gems/nokogiri-1.5.11/lib/nokogiri/nokogiri.bundle Reason: Incompatible library version: nokogiri.bundle requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0 - /Users/Ravi/.rvm/gems/ruby-1.9.3-p545@global/gems/nokogiri-1.5.11/lib/nokogiri/nokogiri.bundle from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
require'
from /Users/Ravi/.rvm/gems/ruby-1.9.3-p545@global/gems/nokogiri-1.5.11/lib/nokogiri.rb:28:in <top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' from /Users/Ravi/.rvm/gems/ruby-1.9.3-p545@global/gems/campfire_export-0.3.0/lib/campfire_export.rb:30:in
<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
require'
from /Users/Ravi/.rvm/gems/ruby-1.9.3-p545@global/gems/campfire_export-0.3.0/bin/campfire_export:28:in <top (required)>' from /usr/bin/campfire_export:23:in
load'
from /usr/bin/campfire_export:23:in `
I am getting the following when the app tries to download a .js file.
cust_service_djenga.js ... /usr/lib/ruby/1.9.1/psych.rb:203:in parse': (<unknown>): mapping values are not allowed in this context at line 4 column 52 (Psych::SyntaxError) from /usr/lib/ruby/1.9.1/psych.rb:203:in
parse_stream'
from /usr/lib/ruby/1.9.1/psych.rb:151:in parse' from /usr/lib/ruby/1.9.1/psych.rb:127:in
load'
from /var/lib/gems/1.9.1/gems/crack-0.1.8/lib/crack/json.rb:12:in parse' from /var/lib/gems/1.9.1/gems/httparty-0.7.8/lib/httparty/parser.rb:116:in
json'
from /var/lib/gems/1.9.1/gems/httparty-0.7.8/lib/httparty/parser.rb:136:in parse_supported_format' from /var/lib/gems/1.9.1/gems/httparty-0.7.8/lib/httparty/parser.rb:103:in
parse'
from /var/lib/gems/1.9.1/gems/httparty-0.7.8/lib/httparty/parser.rb:66:in call' from /var/lib/gems/1.9.1/gems/httparty-0.7.8/lib/httparty/request.rb:217:in
parse_response'
from /var/lib/gems/1.9.1/gems/httparty-0.7.8/lib/httparty/request.rb:189:in handle_response' from /var/lib/gems/1.9.1/gems/httparty-0.7.8/lib/httparty/request.rb:71:in
perform'
from /var/lib/gems/1.9.1/gems/httparty-0.7.8/lib/httparty.rb:390:in perform_request' from /var/lib/gems/1.9.1/gems/httparty-0.7.8/lib/httparty.rb:342:in
get'
from /var/lib/gems/1.9.1/gems/httparty-0.7.8/lib/httparty.rb:422:in get' from /var/lib/gems/1.9.1/gems/campfire_export-0.3.0/lib/campfire_export.rb:42:in
get'
from /var/lib/gems/1.9.1/gems/campfire_export-0.3.0/lib/campfire_export.rb:463:in export_content' from /var/lib/gems/1.9.1/gems/campfire_export-0.3.0/lib/campfire_export.rb:436:in
export'
from /var/lib/gems/1.9.1/gems/campfire_export-0.3.0/lib/campfire_export.rb:289:in block in export_uploads' from /var/lib/gems/1.9.1/gems/campfire_export-0.3.0/lib/campfire_export.rb:286:in
each'
from /var/lib/gems/1.9.1/gems/campfire_export-0.3.0/lib/campfire_export.rb:286:in export_uploads' from /var/lib/gems/1.9.1/gems/campfire_export-0.3.0/lib/campfire_export.rb:235:in
export'
from /var/lib/gems/1.9.1/gems/campfire_export-0.3.0/lib/campfire_export.rb:177:in export' from /var/lib/gems/1.9.1/gems/campfire_export-0.3.0/bin/campfire_export:61:in
block in <top (required)>'
from /var/lib/gems/1.9.1/gems/campfire_export-0.3.0/bin/campfire_export:60:in each' from /var/lib/gems/1.9.1/gems/campfire_export-0.3.0/bin/campfire_export:60:in
<top (required)>'
from /usr/local/bin/campfire_export:23:in load' from /usr/local/bin/campfire_export:23:in
Outside of this, it works great, but when it hits the .js file it just dies.
Thanks,
OS X 10.9.1
Ruby 2.0.0p353
Hi, I installed the gem but campfire_export still returns command not found?
httparty is already parsing all of the XML responses; no need to use Nokogiri to do it again. Would be better to use the already-parsed results, and probably better to switch to JSON responses, too.
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.