I hereby claim:
- I am alxgmpr on github.
- I am edzart (https://keybase.io/edzart) on keybase.
- I have a public key ASDkYqkGtmzZoV0G93d1_PA6qG7HECEr_lcB7w_Z97xt6Qo
To claim this, I am signing this object:
#!/bin/bash | |
############################################################################ | |
# Squid Proxy Installer (SPI) # | |
# Version: 2.0 Build 2017 # | |
# Branch: Stable # | |
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# | |
# Author: Hidden Refuge (© 2014 - 2016) # | |
# License: MIT License # | |
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# |
cd ~ | |
mkdir dev_tools | |
cd dev_tools | |
## download SIP source code | |
wget http://sourceforge.net/projects/pyqt/files/sip/sip-4.19.3/sip-4.19.3.tar.gz | |
tar zxf sip-4.19.3.tar.gz | |
cd sip-4.19.3 | |
python configure.py | |
make |
import requests | |
from datetime import datetime | |
from time import sleep | |
import threading | |
class Target(threading.Thread): | |
def __init__(self, tid): | |
self.tid = tid | |
threading.Thread.__init__(self) | |
self.slackhook = 'https://hooks.slack.com/services/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' |
I hereby claim:
To claim this, I am signing this object:
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.
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 | |
import json | |
import threading | |
import csv | |
from datetime import datetime | |
from requests.packages.urllib3.exceptions import InsecureRequestWarning | |
requests.packages.urllib3.disable_warnings(InsecureRequestWarning) |
import requests | |
LISTINGURL = '' | |
VIEWS = 200 | |
def main(): | |
for i in range(VIEWS): | |
r = requests.get(LISTINGURL) | |
if __name__ == '__main__': |
One of the projects I'm working on right now requires being able to upload product images to Shopify. These images
are sourced via Dropbox links, which look something like this: https://www.dropbox.com/s/[some id]/[filename].jpg?dl=0
.
Shopify has a feature which allows for API image uploads via URL or via a Base64 encoded attachment. However, when you try and link a Dropbox URL, you will likely encounter an error since Dropbox file extensions are "faux", and aren't the actual location of the image you want.
Searching for a solution to this yeilds little help. The common solution from Shopify indicates that you'd have to download
the images via your URL (to do this you must pass ?dl=1
), and either encode it to base64 or host it somewhere on your own,
then attach the image to your API request.
import requests | |
import urllib3 | |
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) | |
class ProxyFinder: | |
def __init__(self): | |
self.username = 'XXX' | |
self.password = 'XXX' |