ffalt / aufschreib Goto Github PK
View Code? Open in Web Editor NEWclassify tweets & generate statistics
classify tweets & generate statistics
I followed your setup guide and executed node "1 prepare.js"
on step 4.
On the first run data/messages.json
contained only your example (without semicolon and ellipsis of course), the second time data/messages.json
was filled with random tweets via https://stream.twitter.com/1.1/statuses/filter.json
. Both times the same error occurred (see console output)
The database contains a table tweets
with all tweets from data/messages.json
, but the site says
Nix :]
Running with usedb = false
, the site shows all tweets and but doesn't work (that would be the another issue/fix).
Could you provide a sample data/messages.json
that works for you with mysql?
[…]
[Tweets] Connecting to DB
[DB] Preparing Tweets
[DB] Creating Tables
[DB] Tweet Table Created
[DB] VoteUsers Table Created
[DB] Votes Table Created
[DB] Pumping Tweets to DB
[DB] Tweets stored
TypeError: undefined is not a function
at /Users/ckintner/aufschreib/1 prepare.js:55:4
at Query._callback (/Users/ckintner/aufschreib/tweets_mysql.js:139:4)
at Query.Sequence.end (/Users/ckintner/aufschreib/node_modules/mysql/lib/protocol/sequences/Sequence.js:66:24)
at Query._handleFinalResultPacket (/Users/ckintner/aufschreib/node_modules/mysql/lib/protocol/sequences/Query.js:139:8)
at Query.OkPacket (/Users/ckintner/aufschreib/node_modules/mysql/lib/protocol/sequences/Query.js:73:10)
at Protocol._parsePacket (/Users/ckintner/aufschreib/node_modules/mysql/lib/protocol/Protocol.js:169:24)
at Parser.write (/Users/ckintner/aufschreib/node_modules/mysql/lib/protocol/Parser.js:62:12)
at Protocol.write (/Users/ckintner/aufschreib/node_modules/mysql/lib/protocol/Protocol.js:36:16)
at write (_stream_readable.js:547:24)
at flow (_stream_readable.js:556:7)
I'm running
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.