Skip to content

Instantly share code, notes, and snippets.

View ozozozd's full-sized avatar

Ozgur Dogan Ugurlu ozozozd

View GitHub Profile
@ozozozd
ozozozd / zcrawl.js
Last active April 23, 2019 16:06
zillow crawler
// NEIL's thing
var pagestogo = 3;
var script_jQuery=document.createElement('script');
script_jQuery.setAttribute('src','//code.jquery.com/jquery-latest.min.js');
document.body.appendChild(script_jQuery);
var apiKey = "keylGUSqrw15bnk8T";
var hostUrl = "https://api.airtable.com/v0/appG3ImiHnRxIvJoo/Table%201";
var headers = {
@ozozozd
ozozozd / snippet3.js
Created November 14, 2017 04:52
Provide message history for your channels
// wait for our chat to connect
myChat.on('$.connected', () => {
// search for 50 old `message` events
myChat.search({
reverse: true,
event: 'message',
limit: 50
}).on('message', (data) => {
// when messages are returned, render them like normal messages
renderMessage(data);
export default (request) => {
const kvstore = require('kvstore');
const xhr = require('xhr');
const http_options = {
"method": "POST",
"headers": {
"Authorization": "Bearer xvEdXQG3nyyXoFldhgvaoDE7Plipdz",
"Content-Type": "application/json"
},
@ozozozd
ozozozd / akamai_purge.py
Created October 12, 2012 07:48
Akamai Web UI Automated Purge
import Cookie
from google.appengine.api import urlfetch
from urlparse import urljoin
import mechanize
from StringIO import StringIO
class GAEOpener(object):
def __init__(self):
self.cookie = Cookie.SimpleCookie()