Skip to content

Instantly share code, notes, and snippets.

@alxgmpr
alxgmpr / pynode-dashe.md
Last active May 17, 2019 09:05
Best practices for using PyNode proxies in Dashe

Intro

This is a guide for the best practices and uses for PyNode proxies in combination with Shopify Dashe bot. This guide will hopefully help you better understand good proxy/task ratios. There are two scenarios to consider when setting up tasks and proxies. This is monitor mode and restock mode. Most of this file will be about the best ratios, but I'll add a few notes and tips in here in addition.

While monitoring

When Dashe is monitoring a website (that is, you are using keywords or a link to look for a product which is not currently

import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
MAXTHREADS=10
ACCFILENAME="accounts.txt"
VERIFIEDACCFILENAME="verifiedaccounts.txt"
<html>
<head>
<meta charset="UTF-8">
<?php
$debug=False;
set_time_limit(0);
$actionURL="/d3stryr-3stripes-dev.php";
?>
<title>d3stryr 3stripes</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></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
#!/usr/bin/env python
import datetime
import inspect
import json
import lxml.html
from lxml.cssselect import CSSSelector
import re
import requests
import os
@schrobby
schrobby / copbookmarklet.js
Last active August 2, 2017 02:48
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);