Skip to content

Instantly share code, notes, and snippets.

@naasfu
naasfu / barneys.py
Created July 13, 2018 07:21 — forked from liamhubbard/barneys.py
Barney's NY Web Crawler Script
#!/usr/bin/env python
import datetime
import inspect
import json
import lxml.html
from lxml.cssselect import CSSSelector
import re
import requests
import os
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
MAXTHREADS=10
ACCFILENAME="accounts.txt"
VERIFIEDACCFILENAME="verifiedaccounts.txt"
@naasfu
naasfu / bnbfix.py
Created August 10, 2017 11:56 — forked from sonya75/bnbfix.py
ACCOUNTFILENAME="nikeemails.txt"
#Don't change anything below this line
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
import re
def getAppVersion():
global APPVERSION,EXPVERSION
@naasfu
naasfu / nikecc.py
Created August 2, 2017 04:57 — forked from sonya75/nikecc.py
#Script to add address in a list of nike+ accounts
#Works for Nike US and Nike GB
#The account file should contain email:password in each line for each account
ACCOUNTFILENAME="nikeemails.txt"
COUNTRY="US"
FIRSTNAME="John"
#!/usr/bin/env python
import datetime
import inspect
import json
import lxml.html
from lxml.cssselect import CSSSelector
import re
import requests
import os
#!/usr/bin/env python
import datetime
import inspect
import json
import lxml.html
from lxml.cssselect import CSSSelector
import re
import requests
import os
@naasfu
naasfu / copbookmarklet.js
Created April 9, 2017 11:24 — forked from schrobby/copbookmarklet.js
Works on kithnyc.com. Not sure about any other Shopify site.
(function() {
var size = 'YOUR SHOE SIZE HERE';
var subdomain = 'shop.',
path = '/cart/%ID%:%QUANTITY%';
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState == 4 && xhr.status == 200) {
var parsed = JSON.parse(xhr.responseText);
<html>
<head>
<meta charset="UTF-8">
<?php
$debug=False;
set_time_limit(0);
$actionURL="/d3stryr-3stripes.php";
?>
<title>d3stryr 3stripes</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<html>
<head>
<meta charset="UTF-8">
<?php $debug=False; set_time_limit(0); ?>
<title>d3stryr 3stripes</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
@naasfu
naasfu / washed.py
Created December 17, 2016 10:47
///-washed
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import requests
import sys
import time
import os
import lxml.html
from lxml.cssselect import CSSSelector