This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "mechanize" | |
require "nokogiri" | |
module Tumblr | |
class Scraper | |
def initialize(email, password, trim_reblog_info = true) | |
@email = email | |
@password = password | |
@trim_reblog_info = trim_reblog_info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
Module dependencies | |
### | |
require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
express = require 'express' | |
app = module.exports = express.createServer() | |
RedisStore = require 'connect-redis' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function showTweets(){ | |
var target = $("#twitter"); | |
var url = "http://twitter.com/statuses/user_timeline/USERNAME.json?callback=?&count=5" | |
var tweets = new Array(); | |
target.html("Loading Tweets..."); | |
$.getJSON(url, function(data) { | |
target.html(""); |