Show DevBest Omeglog: Random Omegle Log Generator

brandonj

Member
Dec 24, 2015
32
13


I developed this a while ago and totally forgot about it. The backend is written in Sinatra and the frontend was made using Foundation because I'm horrible at web design. It currently has about 20,000 logs in the database. I'm working on adding more features like a share button and about page. Feel free to use it and post and funny logs you see.

Here's a small snippet of how I aggregated all of the log IDs, if anyone's interested. Most of them come from the Wayback machine and weight is given to those that have been shared on other sites (Reddit, Twitter, etc).

Code:
require 'net/http'
require 'uri'

namespace :scrape do
  desc 'Scrape web.archive.org for Omegle logs.'
  task :wayback do
    doc = Net::HTTP.get(URI('http://web.archive.org/cdx/search/xd?url=logs.omegle.com/*&fl=timestamp,original,statuscode&output=json'))
    parsed = JSON.parse(doc)
    count = 0

    parsed[1..-1].each do |log|
      next if log[2] != '200'

      uri = URI(log[1])
      break if uri.path.split('/').count > 2

      new_log = Log.new(url: uri.path.split('/').last)

      if new_log.save
        count += 1
        puts 'Created log: ' + uri.path
      else
        next
      end
    end

    puts count.to_s + ' records created!'
  end
end
 

Zaka

Programmer
Feb 9, 2012
471
121
1609774.png
This one was so sick, and long! Hahaha
 

Zaka

Programmer
Feb 9, 2012
471
121
pointless website but hey ho cool.
It's not really pointless, if you want to have a laugh, this might do it. This is like another version of 9gag but they only focus on omegle conversations
 

Users who are viewing this thread

Top