Skip to content

Instantly share code, notes, and snippets.

View eshem's full-sized avatar
🌴
semi-retired

eshem eshem

🌴
semi-retired
  • los angeles, california
View GitHub Profile
@eshem
eshem / d3stryr-3stripes.php
Created September 20, 2016 22:37
All Day I Dream About Sleeping
<html>
<head>
<meta charset="UTF-8">
<?php $debug=False; ?>
<title>d3stryr 3stripes</title>
<script>
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires="+d.toUTCString();
@eshem
eshem / d3stryr-3stripes-atc-cs.php
Created September 20, 2016 22:37
Helper script for d3stryr-3stripes.php
<?php
$marketsList=[];
$marketsList['AT']='de_AT';
$marketsList['AU']='en_AU';
$marketsList['BE']='fr_BE';
$marketsList['BR']='pt_BR';
$marketsList['CA']='en_CA';
$marketsList['CL']='es_CL';
$marketsList['CO']='es_CO';
$marketsList['CZ']='cz_CZ';
## Developed by @SoleWingSneaks
## Uses the Tellegram API to send send the product link when found
## User must supply very own server, botkey and chatid
## Read up on the app and how to use their API and get your botkey and chatid here https://core.telegram.org/
import requests
from bs4 import BeautifulSoup
from threading import Thread
def message(bot_key, chat_id, txt):
#!/bin/env python2.7
# -*- coding: utf-8 -*-
import requests
import time
import json
from bs4 import BeautifulSoup
import datetime
import adidasProfiles
import threading
#!/usr/bin/env python
import datetime
import inspect
import json
import lxml.html
from lxml.cssselect import CSSSelector
import re
import requests
import os