Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Omeglog: Random Omegle Log Generator
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="brandonj" data-source="post: 394543" data-attributes="member: 65139"><p><a href="http://omeglog.com/" target="_blank">http://omeglog.com/</a></p><p></p><p>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.</p><p></p><p>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). </p><p></p><p>[SPOILER]</p><p>[CODE]</p><p>require 'net/http'</p><p>require 'uri'</p><p></p><p>namespace :scrape do</p><p> desc 'Scrape web.archive.org for Omegle logs.'</p><p> task :wayback do</p><p> doc = Net::HTTP.get(URI('http://web.archive.org/cdx/search/xd?url=logs.omegle.com/*&fl=timestamp,original,statuscode&output=json'))</p><p> parsed = JSON.parse(doc)</p><p> count = 0</p><p></p><p> parsed[1..-1].each do |log|</p><p> next if log[2] != '200'</p><p></p><p> uri = URI(log[1])</p><p> break if uri.path.split('/').count > 2</p><p></p><p> new_log = Log.new(url: uri.path.split('/').last)</p><p></p><p> if new_log.save</p><p> count += 1</p><p> puts 'Created log: ' + uri.path</p><p> else</p><p> next</p><p> end</p><p> end</p><p></p><p> puts count.to_s + ' records created!'</p><p> end</p><p>end</p><p>[/CODE]</p><p>[/SPOILER]</p></blockquote><p></p>
[QUOTE="brandonj, post: 394543, member: 65139"] [URL]http://omeglog.com/[/URL] 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). [SPOILER] [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 [/CODE] [/SPOILER] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Omeglog: Random Omegle Log Generator
Top